From 995d9bcf3ef85618ac6bc44e3b0543f9e357e661 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 29 Aug 2015 17:51:10 +0000 Subject: oops... some more 'hides' warnings git-svn-id: http://svn.miranda-ng.org/main/trunk@15100 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/libyahoo2/yahoo_util.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/Yahoo/src/libyahoo2') diff --git a/protocols/Yahoo/src/libyahoo2/yahoo_util.cpp b/protocols/Yahoo/src/libyahoo2/yahoo_util.cpp index 63149f3821..8192436834 100644 --- a/protocols/Yahoo/src/libyahoo2/yahoo_util.cpp +++ b/protocols/Yahoo/src/libyahoo2/yahoo_util.cpp @@ -119,14 +119,12 @@ void y_strfreev(char ** vector) char ** y_strsplit(char * str, char * sep, int nelem) { char ** vector; - char *s, *p; int i=0; int l = (int)strlen(sep); if (nelem <= 0) { - char * s; nelem=0; if (*str) { - for(s=strstr(str, sep); s; s=strstr(s+l, sep),nelem++) + for(char *s=strstr(str, sep); s; s=strstr(s+l, sep),nelem++) ; if (strcmp(str+strlen(str)-l, sep)) nelem++; @@ -135,7 +133,7 @@ char ** y_strsplit(char * str, char * sep, int nelem) vector = y_new(char *, nelem + 1); - for(p=str, s=strstr(p,sep); i