without a directory (e.g. :cscope add cscope.out). Found and fixed by
Paul Irofti, with help from me; Thanks!
upstream nvi also has this fix.
ok otto@.
-/* $OpenBSD: ex_cscope.c,v 1.14 2007/09/11 15:47:17 gilles Exp $ */
+/* $OpenBSD: ex_cscope.c,v 1.15 2008/08/29 13:07:13 oga Exp $ */
/*-
* Copyright (c) 1994, 1996
dbname = CSCOPE_DBFILE;
} else if ((dbname = strrchr(dname, '/')) != NULL)
*dbname++ = '\0';
+ else {
+ dbname = dname;
+ dname = ".";
+ }
/* Allocate a cscope connection structure and initialize its fields. */
len = strlen(dname);