*/
#ifndef lint
-static char sccsid[] = "@(#)keyword.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)keyword.c 5.9 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
parsefmt(p)
char *p;
{
+ static struct varent *vtail;
register VAR *v;
register char *cp;
register struct varent *vent;
static VAR *findvar();
#define FMTSEP " \t,\n"
- while (p) {
+ while (p && *p) {
while ((cp = strsep(&p, FMTSEP)) != NULL && *cp == '\0')
/* void */;
if (!(v = findvar(cp)))