mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-15 21:38:08 +02:00
Merge branch 'varnull' into 'master'
Don't append NULL when a variable doesn't exist See merge request pkg-config/pkg-config!17
This commit is contained in:
commit
048ceae310
1 changed files with 2 additions and 1 deletions
3
parse.c
3
parse.c
|
|
@ -206,7 +206,8 @@ trim_and_sub (Package *pkg, const char *str, const char *path)
|
|||
|
||||
g_free (varname);
|
||||
|
||||
g_string_append (subst, varval);
|
||||
if (varval)
|
||||
g_string_append (subst, varval);
|
||||
g_free (varval);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue