ctf: fix -Wformat-overflow error in ctf-meta-resolve.cpp
[babeltrace.git] / src / plugins / ctf / common / metadata / ctf-meta-resolve.cpp
index 06fa55f5e0180c8ad64bc8b3aae60f66f72be22e..5b65414ee6c3dffe0d837ba60448617c996ff5f1 100644 (file)
@@ -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);
This page took 0.023798 seconds and 4 git commands to generate.