Commit 68459d3e authored by Baptiste Daroussin's avatar Baptiste Daroussin
Browse files

Fix variable collision due to bad cherry-pick

parent bf36bad2
...@@ -349,9 +349,9 @@ pkg_load_metadata(struct pkg *pkg, const char *mfile, const char *md_dir, ...@@ -349,9 +349,9 @@ pkg_load_metadata(struct pkg *pkg, const char *mfile, const char *md_dir,
/* if no arch autodetermine it */ /* if no arch autodetermine it */
if (pkg->abi == NULL) { if (pkg->abi == NULL) {
#ifdef __FreeBSD__ #ifdef __FreeBSD__
char *osversion; char *str_osversion;
xasprintf(&osversion, "%d", osversion); xasprintf(&str_osversion, "%d", osversion);
pkg_kv_add(&pkg->annotations, "FreeBSD_version", osversion, "annotation"); pkg_kv_add(&pkg->annotations, "FreeBSD_version", str_osversion, "annotation");
#endif #endif
arch = pkg_object_string(pkg_config_get("ABI")); arch = pkg_object_string(pkg_config_get("ABI"));
pkg->abi = xstrdup(arch); pkg->abi = xstrdup(arch);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment