summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorIgor Murzov <e-mail@date.by>2012-12-10 03:19:38 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-12-10 03:19:38 +0000
commitd2062a0d27d48b754f6905345327e3a83ddf9494 (patch)
tree623a2822ffc13069e869985c61b652d4061cbbaa /src/lib/ecore
parent39bde067b83025092e79d68648f4ad99b4f779ec (diff)
From: Igor Murzov <e-mail@date.by>
Subject: [E-devel] [PATCH][Ecore] Fixes for invalid memory read issues discovered by cppcheck One more patch to fix issues discovered by cppcheck. SVN revision: 80559
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_exe.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/ecore/ecore_exe.c b/src/lib/ecore/ecore_exe.c
index 19bc39b008..36347f687d 100644
--- a/src/lib/ecore/ecore_exe.c
+++ b/src/lib/ecore/ecore_exe.c
@@ -692,10 +692,13 @@ ecore_exe_pipe_run(const char *exe_cmd,
692 Ecore_Exe_Event_Add *e; 692 Ecore_Exe_Event_Add *e;
693 693
694 e = _ecore_exe_event_add_new(); 694 e = _ecore_exe_event_add_new();
695 e->exe = exe; 695 if (e)
696 if (e) /* Send the event. */ 696 {
697 ecore_event_add(ECORE_EXE_EVENT_ADD, e, 697 e->exe = exe;
698 _ecore_exe_event_add_free, NULL); 698 if (e) /* Send the event. */
699 ecore_event_add(ECORE_EXE_EVENT_ADD, e,
700 _ecore_exe_event_add_free, NULL);
701 }
699 /* INF("Running as %d for %s.\n", exe->pid, exe->cmd); */ 702 /* INF("Running as %d for %s.\n", exe->pid, exe->cmd); */
700 } 703 }
701 704