From a0827f61f16f691962b378ab64ea27e5132dc506 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 19 Jun 2015 18:56:43 +0000 Subject: GG: - Minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/dynstuff.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/Gadu-Gadu/src/dynstuff.cpp') diff --git a/protocols/Gadu-Gadu/src/dynstuff.cpp b/protocols/Gadu-Gadu/src/dynstuff.cpp index 4d21ed7eb0..9c9656da84 100644 --- a/protocols/Gadu-Gadu/src/dynstuff.cpp +++ b/protocols/Gadu-Gadu/src/dynstuff.cpp @@ -549,13 +549,11 @@ void array_add(char ***array, char *string) */ char *array_join(char **array, const char *sep) { - string_t s = string_init(NULL); - int i; - if (!array) return _strdup(""); - for (i = 0; array[i]; i++) { + string_t s = string_init(NULL); + for (int i = 0; array[i]; i++) { if (i) string_append(s, sep); -- cgit v1.2.3