This kind of paranoia is a debug option at best.
authorRob Landley <rob@landley.net>
Fri, 30 Jun 2006 16:36:56 +0000 (16:36 -0000)
committerRob Landley <rob@landley.net>
Fri, 30 Jun 2006 16:36:56 +0000 (16:36 -0000)
libbb/xfuncs.c

index 432fd60798cc72bdf24f4eed8140c11e73456bac..684d0a4fbbeb9698339f7b29ca3e39eaa31b5ea2 100644 (file)
@@ -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);