Move `src/plugins/comp-logging.h` -> `src/logging/comp-logging.h`
[babeltrace.git] / src / plugins / ctf / common / metadata / decoder-packetized-file-stream-to-buf.c
index e14c54d7907d542d3031795ea97e4633aba0a8ed..07ddca858cf96c0d1958fbc6e3ab37f9befff84d 100644 (file)
@@ -15,7 +15,7 @@
 #define BT_COMP_LOG_SELF_COMP self_comp
 #define BT_LOG_OUTPUT_LEVEL log_level
 #define BT_LOG_TAG "PLUGIN/CTF/META/DECODER-DECODE-PACKET"
-#include "plugins/comp-logging.h"
+#include "logging/comp-logging.h"
 
 #include <stdio.h>
 #include <stdbool.h>
@@ -212,7 +212,7 @@ int ctf_metadata_decoder_packetized_file_stream_to_buf(FILE *fp,
        size_t packet_index = 0;
 
        out_fp = bt_open_memstream(buf, &size);
-       if (out_fp == NULL) {
+       if (!out_fp) {
                BT_COMP_LOGE("Cannot open memory stream: %s.",
                        strerror(errno));
                goto error;
This page took 0.023337 seconds and 4 git commands to generate.