1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Useful debug message. Patch by metze.

rafal
This commit is contained in:
Rafal Szczesniak 0001-01-01 00:00:00 +00:00
parent 87eb336d65
commit 8b06364b53

View File

@ -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);