Implement ctf.lttng-live component
[babeltrace.git] / plugins / ctf / common / metadata / decoder.c
index a36a0860811af1770b684b8523615c06f75e1c44..41badbb6412719ab063ce90b282b309f2436f89a 100644 (file)
@@ -321,6 +321,11 @@ enum ctf_metadata_decoder_status ctf_metadata_decoder_decode(
                        goto end;
                }
 
+               if (strlen(buf) == 0) {
+                       /* An empty metadata packet is OK. */
+                       goto end;
+               }
+
                /* Convert the real file pointer to a memory file pointer */
                fp = bt_fmemopen(buf, strlen(buf), "rb");
                close_fp = true;
This page took 0.024723 seconds and 4 git commands to generate.