Skip to content

Commit fd66c79

Browse files
committed
lib/format.c: fix xbps_fmts*
1 parent fac3f76 commit fd66c79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/format.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ parse(const char **pos, struct xbps_fmt *fmt,
478478
r = strbuf_puts(buf, p, e - p);
479479
if (r < 0)
480480
return r;
481+
fmt->var = buf->mem;
481482
} else {
482483
fmt->var = strndup(p, e - p);
483484
if (!fmt->var)

0 commit comments

Comments
 (0)