clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / common / trace-chunk.cpp
index 2be4224f950167675df9b46e155fb4a34ff44270..d48ebc6be3bc22bca29711a28e3afabb9f5ecb1b 100644 (file)
@@ -1545,7 +1545,7 @@ static int lttng_trace_chunk_move_to_completed_post_release(struct lttng_trace_c
         * the creation of the next chunk. This happens if a rotation is
         * performed while tracing is stopped.
         */
-       if (!trace_chunk->path || strcmp(trace_chunk->path, DEFAULT_CHUNK_TMP_OLD_DIRECTORY)) {
+       if (!trace_chunk->path || strcmp(trace_chunk->path, DEFAULT_CHUNK_TMP_OLD_DIRECTORY) != 0) {
                status = lttng_trace_chunk_rename_path_no_lock(trace_chunk,
                                                               DEFAULT_CHUNK_TMP_OLD_DIRECTORY);
                if (status != LTTNG_TRACE_CHUNK_STATUS_OK) {
This page took 0.022771 seconds and 4 git commands to generate.