Changeset cfc8d58 for protocols/yahoo/yahoo_util.c
- Timestamp:
- 2007-04-16T04:31:52Z (17 years ago)
- Branches:
- master
- Children:
- b3cae44
- Parents:
- 6bbb939
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/yahoo/yahoo_util.c
r6bbb939 rcfc8d58 69 69 int i=0; 70 70 int l = strlen(sep); 71 if(nelem < 0) {71 if(nelem <= 0) { 72 72 char * s; 73 73 nelem=0; 74 for(s=strstr(str, sep); s; s=strstr(s+l, sep),nelem++) 75 ; 76 if(strcmp(str+strlen(str)-l, sep)) 77 nelem++; 74 if (*str) { 75 for(s=strstr(str, sep); s; s=strstr(s+l, sep),nelem++) 76 ; 77 if(strcmp(str+strlen(str)-l, sep)) 78 nelem++; 79 } 78 80 } 79 81 … … 87 89 } 88 90 89 if(i<nelem ) /* str didn't end with sep*/91 if(i<nelem && *str) /* str didn't end with sep, and str isn't empty */ 90 92 vector[i++] = strdup(p); 91 93
Note: See TracChangeset
for help on using the changeset viewer.