Skip to content

Commit

Permalink
bin/xbps-dgraph: print usage if package is not given
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Dec 29, 2024
1 parent e82437f commit 84f332c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/xbps-dgraph/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,10 @@ main(int argc, char **argv)
/* NOTREACHED */
}
pkg = *argv;
if (!pkg) {
usage(true);
/* NOTREACHED */
}

/* Initialize libxbps */
memset(&xh, 0, sizeof(xh));
Expand Down

0 comments on commit 84f332c

Please sign in to comment.