Signed-off-by: Alexey Zaytsev <alexey.zaytsev@xxxxxxxxx> --- lib.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lib.c b/lib.c index 965fbfb..8dadfa9 100644 --- a/lib.c +++ b/lib.c @@ -248,6 +248,10 @@ static char **handle_switch_D(char *arg, char **next) { const char *name = arg + 1; const char *value = "1"; + + if (!*name || isspace(*name)) + die("argument to `-D' is missing"); + for (;;) { char c; c = *++arg; -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html