diff options
Diffstat (limited to 'protocols/Gadu-Gadu/src/dynstuff.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/src/dynstuff.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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);
|