forked from ariadne/pkgconf
tuple: fix swallowing $ (closes #67)
parent
0161be992e
commit
84050f8fda
2
tuple.c
2
tuple.c
|
@ -104,7 +104,7 @@ pkg_tuple_parse(pkg_list_t *vars, const char *value)
|
||||||
|
|
||||||
for (ptr = value; *ptr != '\0' && bptr - buf < PKG_BUFSIZE; ptr++)
|
for (ptr = value; *ptr != '\0' && bptr - buf < PKG_BUFSIZE; ptr++)
|
||||||
{
|
{
|
||||||
if (*ptr != '$')
|
if (*ptr != '$' || (*ptr == '$' && *(ptr + 1) != '{'))
|
||||||
*bptr++ = *ptr;
|
*bptr++ = *ptr;
|
||||||
else if (*(ptr + 1) == '{')
|
else if (*(ptr + 1) == '{')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue