diff options
Diffstat (limited to 'src/daemon/dlt_daemon_common.c')
-rw-r--r-- | src/daemon/dlt_daemon_common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c index 8508dfe..38b94fe 100644 --- a/src/daemon/dlt_daemon_common.c +++ b/src/daemon/dlt_daemon_common.c @@ -912,6 +912,14 @@ DltDaemonContext *dlt_daemon_context_add(DltDaemon *daemon, context->log_level_pos = log_level_pos; context->user_handle = user_handle; + /* In case a context is loaded from runtime config file, + * the user_handle is 0 and we mark that context as predefined. + */ + if (context->user_handle == 0) + context->predefined = true; + else + context->predefined = false; + /* Sort */ if (new_context) { qsort(user_list->contexts, |