This kind of paranoia is a debug option at best.

This commit is contained in:
Rob Landley 2006-06-30 16:36:56 +00:00
parent cd545287c5
commit 8bbdb8732f

View 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);