From 1cc2e2af85f5c19b614ae7ed156b1569c39daf20 Mon Sep 17 00:00:00 2001 From: landley Date: Fri, 30 Jun 2006 16:36:56 +0000 Subject: This kind of paranoia is a debug option at best. git-svn-id: svn://busybox.net/trunk/busybox@15558 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/xfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-55-g6feb