X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fmetadata%2Fctf-meta-resolve.cpp;h=5b65414ee6c3dffe0d837ba60448617c996ff5f1;hb=ceda1ae6ecf09cd6ad521b34b553f78dbe9bec21;hp=06fa55f5e0180c8ad64bc8b3aae60f66f72be22e;hpb=4164020e790fa6c0700715936b40a3fa46df479e;p=babeltrace.git diff --git a/src/plugins/ctf/common/metadata/ctf-meta-resolve.cpp b/src/plugins/ctf/common/metadata/ctf-meta-resolve.cpp index 06fa55f5..5b65414e 100644 --- a/src/plugins/ctf/common/metadata/ctf-meta-resolve.cpp +++ b/src/plugins/ctf/common/metadata/ctf-meta-resolve.cpp @@ -645,7 +645,7 @@ static int pathstr_to_field_path(const char *pathstr, struct ctf_field_path *fie if (BT_LOG_ON_TRACE && ret == 0) { GString *field_path_pretty = ctf_field_path_string(field_path); - const char *field_path_pretty_str = field_path_pretty ? field_path_pretty->str : NULL; + const char *field_path_pretty_str = field_path_pretty ? field_path_pretty->str : "(null)"; BT_COMP_LOGD("Found field path: path=\"%s\", field-path=\"%s\"", pathstr, field_path_pretty_str);