From be0845b46c2e70267f7aa68b984bd4f6341fb041 Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Tue, 10 Nov 2015 13:40:52 +0100 Subject: [PATCH] wlog/journald: don't set a default identifier Don't set the identifier to "winpr" as default value because journald will use the programs name as default if no identifier is set. This way a program using WLog doesn't need to set an identifier (except it want something different then it's name). --- winpr/libwinpr/utils/wlog/JournaldAppender.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/winpr/libwinpr/utils/wlog/JournaldAppender.c b/winpr/libwinpr/utils/wlog/JournaldAppender.c index a64756260..31ac150ee 100644 --- a/winpr/libwinpr/utils/wlog/JournaldAppender.c +++ b/winpr/libwinpr/utils/wlog/JournaldAppender.c @@ -196,12 +196,6 @@ wLogAppender* WLog_JournaldAppender_New(wLog* log) if (!WLog_JournaldAppender_Open(log, (wLogAppender *)appender)) goto error_open; } - else - { - appender->identifier = _strdup("winpr"); - if (!appender->identifier) - goto error_env_malloc; - } return (wLogAppender *)appender;