]> saetta.ns0.it Git - libzakutils/commitdiff
Use of wrong variable in ::get_gdatetime_from_string.
authorAndrea Zagli <azagli@libero.it>
Mon, 7 Dec 2015 09:27:45 +0000 (10:27 +0100)
committerAndrea Zagli <azagli@libero.it>
Mon, 7 Dec 2015 09:27:45 +0000 (10:27 +0100)
src/datetime.c

index f097661da52686380927ab42b539f00ec33b44e5..a5787f2019cce628301c0fd6c0df02b400d641ca 100644 (file)
@@ -393,7 +393,7 @@ GDateTime
                        return NULL;
                }
 
-       str_tokens = g_strsplit_set (string, delimiters, -1);
+       str_tokens = g_strsplit_set (new_str, delimiters, -1);
        if (str_tokens == NULL)
                {
                        g_free (delimiters);
@@ -402,7 +402,7 @@ GDateTime
                        return NULL;
                }
 
-       format_tokens = g_strsplit_set (format, delimiters, -1);
+       format_tokens = g_strsplit_set (new_format, delimiters, -1);
        if (format_tokens == NULL)
                {
                        g_free (delimiters);