summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2003-11-18 19:39:51 +0000
committerRafal Szczesniak <mimir@samba.org>2003-11-18 19:39:51 +0000
commit8f78f1bed2d0a0fb007492d48ea84b18c31ca388 (patch)
tree791574bb35110166102938b1db571a04d4ce60a7
parent1276bbf4c9092ce8eaf3f0e30a85e71b8c0114b0 (diff)
downloadsamba-8f78f1bed2d0a0fb007492d48ea84b18c31ca388.tar.gz
samba-8f78f1bed2d0a0fb007492d48ea84b18c31ca388.tar.bz2
samba-8f78f1bed2d0a0fb007492d48ea84b18c31ca388.zip
Useful debug message. Patch by metze.
rafal (This used to be commit 5f02adbd261b7fde22b72703135dec44b7652ef1)
-rw-r--r--source3/lib/util_str.c8
1 files changed, 5 insertions, 3 deletions
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);