diff options
-rw-r--r-- | agent/tcf/framework/context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/tcf/framework/context.c b/agent/tcf/framework/context.c index 5c0f6309..fd785a63 100644 --- a/agent/tcf/framework/context.c +++ b/agent/tcf/framework/context.c @@ -160,7 +160,10 @@ static void get_context_full_name(Context * ctx) { get_context_full_name(ctx->parent); buf_char('/'); if (name != NULL) { + int quote = strchr(name, '/') == NULL ? 0 : 1; + if (quote) buf_char('"'); while (*name) buf_char(*name++); + if (quote) buf_char('"'); } } } |