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 4ae4f64..5e44329 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;