summaryrefslogtreecommitdiffstats
path: root/runtime/lket/b2a/lket_b2a.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lket/b2a/lket_b2a.c')
-rw-r--r--runtime/lket/b2a/lket_b2a.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/lket/b2a/lket_b2a.c b/runtime/lket/b2a/lket_b2a.c
index ffbde3b9..1b19a672 100644
--- a/runtime/lket/b2a/lket_b2a.c
+++ b/runtime/lket/b2a/lket_b2a.c
@@ -689,8 +689,7 @@ void register_evt_desc(FILE *infp, size_t size)
len = strlen(evt_body+2)+2;
if(!events_des[_HOOKID_REGSYSEVT][grpid][hookid])
events_des[_HOOKID_REGSYSEVT][grpid][hookid] = malloc(sizeof(event_desc));
- if(!events_des[_HOOKID_REGSYSEVT][grpid][hookid]->description)
- events_des[_HOOKID_REGSYSEVT][grpid][hookid]->description = malloc(len);
+ events_des[_HOOKID_REGSYSEVT][grpid][hookid]->description = malloc(len);
strncpy(events_des[_HOOKID_REGSYSEVT][grpid][hookid]->description, evt_body+2, len);
#ifdef HAS_MYSQL