[Title] Fix major prevent submit/tizen_2.2/20130627.053943
authorho.namkoong <ho.namkoong@samsung.com>
Thu, 27 Jun 2013 02:55:49 +0000 (11:55 +0900)
committerho.namkoong <ho.namkoong@samsung.com>
Thu, 27 Jun 2013 02:55:49 +0000 (11:55 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I02689618e2584388f43f6e62256e06b1b5b48318

src/sdb.c

index 99d6671..c9410f2 100644 (file)
--- a/src/sdb.c
+++ b/src/sdb.c
@@ -1025,6 +1025,11 @@ static void execute_required_process() {
 
     FILE *pre_proc_file = popen("pidof debug_launchpad_preloading_preinitializing_daemon", "r");
 
+    if(pre_proc_file == NULL) {
+        D("fail to get the pidof debug_launchpad_preloading_preinitializing_daemon");
+        return;
+    }
+
     int result = 0;
     while(!feof(pre_proc_file)) {
         int pid = 0;