Skip to content

Commit 7553cb7

Browse files
committed
lib: fix xbps_alternatives_* should return errno
1 parent dd263e3 commit 7553cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/package_alternatives.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ create_symlinks(struct xbps_handle *xhp, xbps_array_t a, const char *grname)
168168
if (!(tok1 = strtok(alternative, ":")) ||
169169
!(tok2 = strtok(NULL, ":"))) {
170170
free(alternative);
171-
return -1;
171+
return EINVAL;
172172
}
173173

174174
target = strdup(tok2);

0 commit comments

Comments
 (0)