[gom] gom: Fix obvious bug in table creation function



commit ab563a0cd6ece7aa835e732274e4fe8ee1b2978a
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Apr 16 17:23:41 2014 +0200

    gom: Fix obvious bug in table creation function
    
    There was only ever one command in the creation commands returned.

 gom/gom-command-builder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gom/gom-command-builder.c b/gom/gom-command-builder.c
index 041a6a1..db704f3 100644
--- a/gom/gom-command-builder.c
+++ b/gom/gom-command-builder.c
@@ -383,7 +383,7 @@ gom_command_builder_build_create (GomCommandBuilder *builder,
                               "adapter", priv->adapter,
                               "sql", str->str,
                               NULL);
-       ret = g_list_prepend(NULL, command);
+       ret = g_list_prepend(ret, command);
        g_string_free(str, TRUE);
      }
    }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]