Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/xfuncs.c2
1 files changed, 1 insertions, 1 deletions
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);