projects
/
platform
/
core
/
multimedia
/
mmsvc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b18a900
)
Add assertion for debuging at data channel
39/87539/3
author
Hyongtaek Lim
<hyongtaek.lim@samsung.com>
Thu, 8 Sep 2016 11:48:48 +0000
(20:48 +0900)
committer
Hyongtaek Lim
<hyongtaek.lim@samsung.com>
Tue, 13 Sep 2016 02:24:15 +0000
(19:24 -0700)
Change-Id: I060e1d289bfd5a60dc65c9de7ef04832c206b31d
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
src/muse_core_ipc.c
patch
|
blob
|
history
diff --git
a/src/muse_core_ipc.c
b/src/muse_core_ipc.c
index
ee503a1
..
a80b2cb
100644
(file)
--- a/
src/muse_core_ipc.c
+++ b/
src/muse_core_ipc.c
@@
-28,6
+28,8
@@
#include "muse_core_msg_json.h"
#include "muse_core_module.h"
+#include <assert.h>
+
#define END_DELIM '}'
#define MSG "msg"
#define DATA "data"
@@
-234,6
+236,11
@@
static gpointer _muse_core_ipc_data_worker(gpointer data)
module->ch[MUSE_CHANNEL_DATA].fd = fd;
}
}
+ if (!module) {
+ LOGE("module address is not set");
+ assert(0);
+ }
+
MUSE_FREE(recvBuff);
recvBuff = NULL;
currLen = 0;