Fix for coverity (array will always decompose to a pointer which will always be true)
Fix for coverity (may pass NULL char pointer to strstr)