murphy-db: sizeof(int*) -> sizeof(int) as reported by static analysis.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Mon, 22 Jul 2013 20:29:24 +0000 (23:29 +0300)
committerIsmo Puustinen <ismo.puustinen@intel.com>
Mon, 22 Jul 2013 20:29:24 +0000 (23:29 +0300)
src/murphy-db/mdb/index.c

index d883baa..77ec8f4 100644 (file)
@@ -100,7 +100,7 @@ int mdb_index_create(mdb_table_t *tbl, char **index_columns)
             }
         }
 
-        if (!(idxcols = realloc(idxcols, sizeof(int *) * (i+1)))) {
+        if (!(idxcols = realloc(idxcols, sizeof(int) * (i+1)))) {
             errno = ENOMEM;
             return -1;
         }