Various small fixes from Dominique Pelle.
diff --git a/src/if_cscope.c b/src/if_cscope.c
index 6ab9c24..8eaa037 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -588,7 +588,7 @@
 		)
 	{
 	    fname[strlen(fname)-1] = '\0';
-	    if (strlen(fname) == 0)
+	    if (fname[0] == '\0')
 		break;
 	}
 	if (fname[0] == '\0')