mirror of
https://github.com/samba-team/samba.git
synced 2025-03-07 00:58:40 +03:00
Useful debug message. Patch by metze.
rafal (This used to be commit 8b06364b53ea01ec7a21f3fbe86afad02fe21dd8)
This commit is contained in:
parent
013a051103
commit
8e76781ff2
@ -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…
x
Reference in New Issue
Block a user