mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Useful debug message. Patch by metze.
rafal
This commit is contained in:
parent
87eb336d65
commit
8b06364b53
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user