diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2011-09-15 15:09:36 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2011-09-15 15:09:36 +0200 |
commit | 15e6973c5a8ab6c5573ca7ee72f410022efa0434 (patch) | |
tree | 91126206e8ff9af7534cf5e8b057ea44d45e0a14 /src/daemon/dlt_daemon_common.c | |
parent | 101dab1a5261189a13068810ee57fe76b64ad909 (diff) | |
download | DLT-daemon-15e6973c5a8ab6c5573ca7ee72f410022efa0434.tar.gz |
First version of dlt-daemon option file
Diffstat (limited to 'src/daemon/dlt_daemon_common.c')
-rwxr-xr-x | src/daemon/dlt_daemon_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |