alternatives: fix an assertion!

This commit is contained in:
Juan RP 2015-10-31 14:19:50 +01:00
parent 33a1bea633
commit f896b17ba7

View File

@ -110,7 +110,7 @@ create_symlinks(struct xbps_handle *xhp, xbps_array_t a, const char *grname)
l = left(xbps_string_cstring_nocopy(str)); l = left(xbps_string_cstring_nocopy(str));
assert(l); assert(l);
tgt0 = right(xbps_string_cstring_nocopy(str)); tgt0 = right(xbps_string_cstring_nocopy(str));
assert(tgt); assert(tgt0);
if (l[0] != '/') { if (l[0] != '/') {
char *tgt_dup, *tgt_dir; char *tgt_dup, *tgt_dir;
tgt_dup = strdup(tgt0); tgt_dup = strdup(tgt0);