Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- rel 9; setenv (..., NULL, ...) is undefined behaviour and such beha…
…viour is to segfault in glibc >= 2.22
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- poldek-0.30.1/pkgdir/pkgdir.c~ 2014-03-25 23:32:25.000000000 +0100 | ||
+++ poldek-0.30.1/pkgdir/pkgdir.c 2015-09-14 14:16:12.282109741 +0200 | ||
@@ -274,7 +274,8 @@ const struct pkgdir_module *find_module( | ||
static void env_source(const struct source *src, const char *idxpath) | ||
{ | ||
setenv("POLDEK_SOURCE_PATH", idxpath, 1); | ||
- setenv("POLDEK_SOURCE_PREFIX", src->pkg_prefix, 1); | ||
+ if (src->pkg_prefix) | ||
+ setenv("POLDEK_SOURCE_PREFIX", src->pkg_prefix, 1); | ||
setenv("POLDEK_SOURCE_TYPE", src->type, 1); | ||
if (src->name) | ||
setenv("POLDEK_SOURCE_NAME", src->name, 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters