diff options
author | Rob Landley | 2006-06-30 16:36:56 +0000 |
---|---|---|
committer | Rob Landley | 2006-06-30 16:36:56 +0000 |
commit | 8bbdb8732f28538b8b9ce625e62dfa0afb781d38 (patch) | |
tree | 9a6f20bcc73f09452df8a5212571a9a8c2807f01 /libbb | |
parent | cd545287c5335cf13006b646ca44597acc5e384b (diff) | |
download | busybox-8bbdb8732f28538b8b9ce625e62dfa0afb781d38.zip busybox-8bbdb8732f28538b8b9ce625e62dfa0afb781d38.tar.gz |
This kind of paranoia is a debug option at best.
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 432fd60..684d0a4 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -80,7 +80,7 @@ char * bb_xstrndup (const char *s, int n) { char *t; - if (s == NULL) + if (ENABLE_DEBUG && s == NULL) bb_error_msg_and_die("bb_xstrndup bug"); t = xmalloc(++n); |