Fix crash in stripcslashes("") (#5628)

This commit is contained in:
Stanislav Malyshev 2000-07-17 10:22:30 +00:00
parent f8c07fff2d
commit 7b9d2e33bf

View File

@ -1617,7 +1617,10 @@ PHPAPI void php_stripcslashes(char *str, int *len)
*target++=*source;
}
}
*target='\0';
if(nlen != 0) {
*target='\0';
}
*len = nlen;
}