comparison src/if_cscope.c @ 2047:85da03763130 v7.2.333

updated for version 7.2.333 Problem: Warnings from static code analysis. Solution: Small changes to various lines. (Dominique Pelle)
author Bram Moolenaar <bram@zimbu.org>
date Tue, 19 Jan 2010 14:59:56 +0100
parents 3f661e42f262
children 3112fcc89238
comparison
equal deleted inserted replaced
2046:d433f43849ba 2047:85da03763130
2067 */ 2067 */
2068 if ((tbuf = (char *)alloc((unsigned)strlen(matches[idx]) + 1)) == NULL) 2068 if ((tbuf = (char *)alloc((unsigned)strlen(matches[idx]) + 1)) == NULL)
2069 continue; 2069 continue;
2070 (void)strcpy(tbuf, matches[idx]); 2070 (void)strcpy(tbuf, matches[idx]);
2071 2071
2072 if ((fname = strtok(tbuf, (const char *)"\t")) == NULL) 2072 if (strtok(tbuf, (const char *)"\t") == NULL)
2073 continue; 2073 continue;
2074 if ((fname = strtok(NULL, (const char *)"\t")) == NULL) 2074 if ((fname = strtok(NULL, (const char *)"\t")) == NULL)
2075 continue; 2075 continue;
2076 if ((lno = strtok(NULL, (const char *)"\t")) == NULL) 2076 if ((lno = strtok(NULL, (const char *)"\t")) == NULL)
2077 continue; 2077 continue;