Changeset View
Changeset View
Standalone View
Standalone View
contrib/nvi/ex/ex_cscope.c
Show All 12 Lines | |||||
rtqp->current = rtp; | rtqp->current = rtp; | ||||
} | } | ||||
/* Create the cscope command. */ | /* Create the cscope command. */ | ||||
INT2CHAR(sp, pattern, STRLEN(pattern) + 1, np, nlen); | INT2CHAR(sp, pattern, STRLEN(pattern) + 1, np, nlen); | ||||
np = strdup(np); | np = strdup(np); | ||||
if ((tqp = create_cs_cmd(sp, np, &search)) == NULL) | if ((tqp = create_cs_cmd(sp, np, &search)) == NULL) | ||||
goto err; | goto err; | ||||
if (np != NULL) | if (np != NULL) { | ||||
free(np); | free(np); | ||||
np = NULL; | |||||
} | |||||
/* | /* | ||||
* Stick the current context in a convenient place, we'll lose it | * Stick the current context in a convenient place, we'll lose it | ||||
* when we switch files. | * when we switch files. | ||||
*/ | */ | ||||
frp = sp->frp; | frp = sp->frp; | ||||
lno = sp->lno; | lno = sp->lno; | ||||
cno = sp->cno; | cno = sp->cno; | ||||
Show All 12 Lines |