From 8bbdb8732f28538b8b9ce625e62dfa0afb781d38 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 30 Jun 2006 16:36:56 +0000 Subject: This kind of paranoia is a debug option at best. --- libbb/xfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1