fix seg when passing NULL to strstr use zstr to detect empty str fix compiler warning about || and &&