This fixes segfault when rule file doen't exist and
protocol_trace_init() returns false.
Change-Id: I3785fb664c87c13d717556f7219760bc32dc1afb
ds_dbg("rule_path = %s", rule_path);
ret = rule_set(argc, (const char**)&(argv[0]), reply, len);
+ if (!ret) return ret;
+
ds_inf("%s", &tmpReply);
return ret;
if (!add_new_input_method(server))
goto err;
- if (!protocol_trace_init(display))
- goto err;
-
- protocol_trace_enable(true);
+ if (protocol_trace_init(display))
+ protocol_trace_enable(true);
return true;