From 7dc3df386f9b0fadc115ff55eefb8fbeb1c3077a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 5 Jan 2013 15:07:22 +0000 Subject: - fix for Unicode popups; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2980 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/libyahoo2/yahoo_util.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/Yahoo/src/libyahoo2/yahoo_util.c') diff --git a/protocols/Yahoo/src/libyahoo2/yahoo_util.c b/protocols/Yahoo/src/libyahoo2/yahoo_util.c index a2de75c050..cd76a77ba7 100644 --- a/protocols/Yahoo/src/libyahoo2/yahoo_util.c +++ b/protocols/Yahoo/src/libyahoo2/yahoo_util.c @@ -44,7 +44,7 @@ char * y_string_append(char * string, char * append) int size = strlen(string) + strlen(append) + 1; char * new_string = y_renew(char, string, size); - if(new_string == NULL) { + if (new_string == NULL) { new_string = y_new(char, size); strcpy(new_string, string); FREE(string); @@ -60,7 +60,7 @@ char * y_string_append(char * string, char * append) unsigned int n, i = 0; char *result = NULL; - if(in == NULL || *in == '\0') + if (in == NULL || *in == '\0') return ""; result = y_new(char, strlen(in) * 2 + 1); @@ -86,7 +86,7 @@ char * y_utf8_to_str(const char *in) unsigned int n; char *result = NULL; - if(in == NULL || *in == '\0') + if (in == NULL || *in == '\0') return ""; result = y_new(char, strlen(in) + 1); @@ -122,13 +122,13 @@ char ** y_strsplit(char * str, char * sep, int nelem) char *s, *p; int i=0; int l = strlen(sep); - if(nelem <= 0) { + if (nelem <= 0) { char * s; nelem=0; if (*str) { for(s=strstr(str, sep); s; s=strstr(s+l, sep),nelem++) ; - if(strcmp(str+strlen(str)-l, sep)) + if (strcmp(str+strlen(str)-l, sep)) nelem++; } } @@ -142,7 +142,7 @@ char ** y_strsplit(char * str, char * sep, int nelem) vector[i][len] = '\0'; } - if(i