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 used to be commit 8b06364b53)
This commit is contained in:
Rafal Szczesniak 2003-11-18 19:15:29 +00:00
parent 013a051103
commit 8e76781ff2

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