diff options
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r-- | src/if_cscope.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c index 001955951..600fcb0a3 100644 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -23,7 +23,6 @@ #else /* not UNIX, must be WIN32 */ # include "vimio.h" -# include <fcntl.h> #endif #include "if_cscope.h" @@ -171,7 +170,7 @@ do_cstag(eap) cs_init(); - if (eap->arg == NULL || strlen((const char *)(eap->arg)) == 0) + if (*eap->arg == NUL) { (void)EMSG(_("E562: Usage: cstag <ident>")); return; @@ -1225,7 +1224,7 @@ clear_csinfo(i) csinfo[i].nIndexHigh = 0; csinfo[i].nIndexLow = 0; #endif - csinfo[i].pid = -1; + csinfo[i].pid = 0; csinfo[i].fr_fp = NULL; csinfo[i].to_fp = NULL; #if defined(WIN32) |