# | Line 971 | Line 971 | int n; | |
---|---|---|
971 | char *vn; /* returned view name */ | |
972 | { | |
973 | register char *mv = NULL; | |
974 | + | register int i; |
975 | ||
976 | if (viewselect != NULL) { /* command-line selected */ | |
977 | if (n) /* only do one */ | |
# | Line 993 | Line 994 | char *vn; /* returned view name */ | |
994 | } | |
995 | mv = nvalue(vv+VIEW, n); /* use view n */ | |
996 | if (vn != NULL & mv != NULL) { | |
997 | < | if (*mv != '-') |
998 | < | while (*mv && !isspace(*mv)) |
999 | < | *vn++ = *mv++; |
997 | > | if (mv[i=0] != '-') |
998 | > | while (mv[i] && !isspace(mv[i])) |
999 | > | *vn++ = mv[i++]; |
1000 | *vn = '\0'; | |
1001 | } | |
1002 | return(specview(mv)); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |