$ logger --rfc5424=notq message Segmentation fault (core dumped) Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- misc-utils/logger.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc-utils/logger.c b/misc-utils/logger.c index 838d225..b007377 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -476,7 +476,8 @@ static void syslog_rfc5424_header(struct logger_ctl *const ctl) #endif xasprintf(&structured_data, "[timeQuality tzKnown=\"1\" isSynced=\"0\"]"); - } + } else + structured_data = xstrdup(""); xasprintf(&ctl->hdr, "<%d>1 %s %s %s %s %s %s ", ctl->pri, -- 2.3.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html