From 8f78f1bed2d0a0fb007492d48ea84b18c31ca388 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Tue, 18 Nov 2003 19:39:51 +0000 Subject: Useful debug message. Patch by metze. rafal (This used to be commit 5f02adbd261b7fde22b72703135dec44b7652ef1) --- source3/lib/util_str.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index b6025a362d..5811b3b5e3 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -695,9 +695,11 @@ char *StrnCpy_fn(const char *fn, int line,char *dest,const char *src,size_t n) clobber_region(fn, line, dest, n+1); #endif - if (!dest) - return(NULL); - + if (!dest) { + DEBUG(0,("ERROR: NULL dest in StrnCpy\n")); + return NULL; + } + if (!src) { *dest = 0; return(dest); -- cgit