diff options
Diffstat (limited to 'sbin/camcontrol/util.c')
-rw-r--r-- | sbin/camcontrol/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/camcontrol/util.c b/sbin/camcontrol/util.c index 93f409b..63f952d 100644 --- a/sbin/camcontrol/util.c +++ b/sbin/camcontrol/util.c @@ -125,6 +125,10 @@ arg_put(void *hook, int letter, void *arg, int count, char *name) char *p; p = malloc(count + 1); + if (p == NULL) { + fprintf(stderr, "can't malloc memory for p\n"); + exit(1); + } bzero(p, count +1); strncpy(p, (char *)arg, count); |