oops
This is probably what was intended. If the pointer 'path' is NULL, or if it is not NULL, then the first char should not be '\0'
If the addr pointer is NULL, better to check first before using it.