X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Fctf-ir%2Fresolve.c;h=c8648254faed43eaadf540e2b09d9059696d3de2;hp=b4a9c58cb821df1753921ecfae6d9e8d08c2a631;hb=21a4db917b9e5be79e47376d46e511ecc2e7a8b9;hpb=2c212c058851bd675a5ff33ac0bff981458497be diff --git a/lib/ctf-ir/resolve.c b/lib/ctf-ir/resolve.c index b4a9c58c..c8648254 100644 --- a/lib/ctf-ir/resolve.c +++ b/lib/ctf-ir/resolve.c @@ -1023,6 +1023,12 @@ int resolve_sequence_or_variant_type(struct bt_ctf_field_type *type, abort(); } + if (!pathstr) { + BT_LOGW_STR("Cannot get path string."); + ret = -1; + goto end; + } + /* Get target field path out of path string */ target_field_path = pathstr_to_field_path(pathstr, ctx); if (!target_field_path) {