Code

frontend/query: Fixed an uninitialized value.
authorSebastian Harl <sh@tokkee.org>
Mon, 30 Nov 2015 10:53:25 +0000 (11:53 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 30 Nov 2015 10:53:25 +0000 (11:53 +0100)
src/frontend/query.c

index 4ae4f64a5e0a1373f5ff6ddfb416c277aa546f36..5e443298b6bd8293a0d5d0eace091e5a4124cec9 100644 (file)
@@ -477,7 +477,7 @@ sdb_conn_lookup(sdb_conn_t *conn)
 int
 sdb_conn_store(sdb_conn_t *conn)
 {
-       sdb_ast_node_t *ast;
+       sdb_ast_node_t *ast = NULL;
        const char *buf = sdb_strbuf_string(conn->buf);
        size_t len = conn->cmd_len;
        uint32_t type;