Fix coverity issue 30/258530/1 submit/tizen/20210603.083900
authorYoungHun Kim <yh8004.kim@samsung.com>
Thu, 20 May 2021 02:30:59 +0000 (11:30 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Thu, 20 May 2021 02:31:02 +0000 (11:31 +0900)
 - Uninitialized scalar variable (UNINIT)

Change-Id: I2a75f401daa69b66d18b1afd647db1c88dd0ea86

packaging/murphy.spec
src/murphy-db/mql/statement.c

index aeb61be767361b70efddf5cb2315ac64df116d2a..621b1980fea24caaa568654aac329c04842c266e 100644 (file)
@@ -29,7 +29,7 @@
 Summary: Resource policy framework
 Name: murphy
 Version: 0.0.75
-Release: 19
+Release: 20
 License: BSD-3-Clause
 Group: System/Service
 URL: http://01.org/murphy/
index d7533ec91864843dc08f6ba053162ee78ec11ad6..a48b5aca335868bf66c5ff4002704a9ff2160f7c 100644 (file)
@@ -916,7 +916,7 @@ static mql_result_t *exec_select(mql_result_type_t type, select_statement_t *s)
     mql_result_t *rslt;
     int           maxrow;
     int           nrow;
-    void         *rows;
+    void         *rows = NULL;
 
     if ((maxrow = mqi_get_table_size(s->table)) < 0)
         rslt = mql_result_error_create(ENOENT, "can't access table");