diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM.xs | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,7 @@ Version 4.28 - May 2011, by Per Øyvind Karlsen +- fix an invalid free() that would've happened if package summary were to be + missing and the "" string constant were attempted to be freed - fix odd problems caused by attempt at translating correct tag names for query table into rpm tags - use newSVpvs() for pushing empty strings as constants in stead @@ -1048,7 +1048,7 @@ pack_header(URPM__Package pkg) { pkg->provides = pack_list(pkg->h, RPMTAG_PROVIDENAME, RPMTAG_PROVIDEFLAGS, RPMTAG_PROVIDEVERSION, NULL); if (pkg->summary == NULL) { const char *summary = get_name(pkg->h, RPMTAG_SUMMARY); - pkg->summary = summary ? (char*)summary : ""; + pkg->summary = summary ? (char*)summary : strdup(""); } if (!(pkg->flag & FLAG_NO_HEADER_FREE)) pkg->h =headerFree(pkg->h); |