check if input param is valid 15/66815/1
authorBoram Park <boram1288.park@samsung.com>
Thu, 21 Apr 2016 07:30:10 +0000 (16:30 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 21 Apr 2016 07:30:10 +0000 (16:30 +0900)
Change-Id: Ic1cd413a0205c05226c9b955011e82ac5dbbaf2b

src/tdm_helper.c

index 5887986a70be7f09f0f6b81828f1046458f2e436..25bb885a17a05f292c51a5375bb452250a796077 100644 (file)
@@ -251,8 +251,8 @@ tdm_helper_dump_start(char *dumppath, int *count)
                return;
        }
 
-       if (dumppath == NULL) {
-               TDM_DBG("tdm_helper_dump dumppath is null.");
+       if (dumppath == NULL || count == NULL) {
+               TDM_DBG("tdm_helper_dump dumppath or count is null.");
                return;
        }