summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2003-11-18 19:15:29 +0000
committerRafal Szczesniak <mimir@samba.org>2003-11-18 19:15:29 +0000
commit8e76781ff2588c7fb6efd8c0a8d944d81eb131e6 (patch)
treeecac0b0b4638c0e8ff850bd3bf2baf89107d01c0 /source3/lib
parent013a0511030729bf84f4c703dca3fa39ded5fe12 (diff)
downloadsamba-8e76781ff2588c7fb6efd8c0a8d944d81eb131e6.tar.gz
samba-8e76781ff2588c7fb6efd8c0a8d944d81eb131e6.tar.bz2
samba-8e76781ff2588c7fb6efd8c0a8d944d81eb131e6.zip
Useful debug message. Patch by metze.
rafal (This used to be commit 8b06364b53ea01ec7a21f3fbe86afad02fe21dd8)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index c244a6b34b..a560f61e7c 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)
+ if (!dest) {
+ DEBUG(0,("ERROR: NULL dest in StrnCpy\n"));
return(NULL);
-
+ }
+
if (!src) {
*dest = 0;
return(dest);