diff --git a/bin/xbps-dgraph/main.c b/bin/xbps-dgraph/main.c index 5f6eee08..92404e67 100644 --- a/bin/xbps-dgraph/main.c +++ b/bin/xbps-dgraph/main.c @@ -594,6 +594,10 @@ main(int argc, char **argv) /* NOTREACHED */ } pkg = *argv; + if (!pkg) { + usage(true); + /* NOTREACHED */ + } /* Initialize libxbps */ memset(&xh, 0, sizeof(xh));