From: Rob Landley Date: Fri, 30 Jun 2006 16:36:56 +0000 (-0000) Subject: This kind of paranoia is a debug option at best. X-Git-Tag: 1_2_0~62 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8bbdb8732f28538b8b9ce625e62dfa0afb781d38;p=oweals%2Fbusybox.git This kind of paranoia is a debug option at best. --- diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 432fd6079..684d0a4fb 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);