git.samba.org
/
jerry
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8de1d4e
)
Useful debug message. Patch by metze.
author
Rafal Szczesniak
<mimir@samba.org>
Tue, 18 Nov 2003 19:39:51 +0000
(19:39 +0000)
committer
Rafal Szczesniak
<mimir@samba.org>
Tue, 18 Nov 2003 19:39:51 +0000
(19:39 +0000)
rafal
source/lib/util_str.c
patch
|
blob
|
history
diff --git
a/source/lib/util_str.c
b/source/lib/util_str.c
index b6025a362d3443fc128812fcd5d0830a9295abda..5811b3b5e39c01a9782ec95f4874c4f1a1cc6f0f 100644
(file)
--- a/
source/lib/util_str.c
+++ b/
source/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);