[gimp] libgimpconfig: fix previous commit to return the right error	token
- From: Michael Natterer <mitch src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gimp] libgimpconfig: fix previous commit to return the right error	token
 
- Date: Thu, 20 Jun 2019 13:02:24 +0000 (UTC)
 
commit d7d281bd97aba0928c4ef09ff00508ff64c7cabc
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jun 20 15:01:29 2019 +0200
    libgimpconfig: fix previous commit to return the right error token
 libgimpconfig/gimpconfig-deserialize.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgimpconfig/gimpconfig-deserialize.c b/libgimpconfig/gimpconfig-deserialize.c
index 3a00be7a9f..58de4d634f 100644
--- a/libgimpconfig/gimpconfig-deserialize.c
+++ b/libgimpconfig/gimpconfig-deserialize.c
@@ -720,13 +720,13 @@ gimp_config_deserialize_object (GValue     *value,
 
           if (! gimp_scanner_parse_string (scanner, &type_name))
             return G_TOKEN_STRING;
-            
+
           if (! (type_name && *type_name))
-           {
+            {
               g_scanner_error (scanner, "Type name is empty");
               g_free (type_name);
-              return G_TOKEN_ERROR;
-           }
+              return G_TOKEN_NONE;
+            }
 
           type = g_type_from_name (type_name);
           g_free (type_name);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]