diff options
Diffstat (limited to 'usr.bin/pmdb/clit.c')
-rw-r--r-- | usr.bin/pmdb/clit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/pmdb/clit.c b/usr.bin/pmdb/clit.c index bb05e321306..d73e571cea6 100644 --- a/usr.bin/pmdb/clit.c +++ b/usr.bin/pmdb/clit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clit.c,v 1.2 2002/03/15 16:41:06 jason Exp $ */ +/* $OpenBSD: clit.c,v 1.3 2002/07/12 00:24:53 deraadt Exp $ */ /* * Copyright (c) 2002 Artur Grabowski <art@openbsd.org> * All rights reserved. @@ -216,6 +216,8 @@ cmdloop(void *arg) #endif orgline = line = strdup(elline); + if (line == NULL) + err(1, "strdup"); argc = 0; for (ap = argv; (*ap = strsep(&line, " \t\n")) != NULL;) { |