From 15e6973c5a8ab6c5573ca7ee72f410022efa0434 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Thu, 15 Sep 2011 15:09:36 +0200 Subject: First version of dlt-daemon option file --- src/daemon/dlt_daemon_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/daemon/dlt_daemon_common.c') diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c index a4d5dba..ed6103c 100755 --- a/src/daemon/dlt_daemon_common.c +++ b/src/daemon/dlt_daemon_common.c @@ -154,12 +154,12 @@ int dlt_daemon_init(DltDaemon *daemon,const char *runtime_directory, int verbose daemon->runtime_context_cfg_loaded = 0; /* prepare filenames for configuration */ - if(runtime_directory) + if(runtime_directory[0]) strcpy(daemon->runtime_application_cfg,runtime_directory); else strcpy(daemon->runtime_application_cfg,DLT_RUNTIME_DEFAULT_DIRECTORY); strcat(daemon->runtime_application_cfg,DLT_RUNTIME_APPLICATION_CFG); - if(runtime_directory) + if(runtime_directory[0]) strcpy(daemon->runtime_context_cfg,runtime_directory); else strcpy(daemon->runtime_context_cfg,DLT_RUNTIME_DEFAULT_DIRECTORY); -- cgit v1.2.1