projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git]
/
src
/
ctf-writer
/
stream.c
diff --git
a/src/ctf-writer/stream.c
b/src/ctf-writer/stream.c
index 1bf60df144bf607a22aeba45282265d670ceff18..3f5e610094e7c45ef311070ca91032274d89c13a 100644
(file)
--- a/
src/ctf-writer/stream.c
+++ b/
src/ctf-writer/stream.c
@@
-1021,7
+1021,7
@@
append_ids:
stream_class_id, stream->common.id);
file_path = g_build_filename(writer->path->str, filename->str, NULL);
stream_class_id, stream->common.id);
file_path = g_build_filename(writer->path->str, filename->str, NULL);
- if (
file_path == NULL
) {
+ if (
!file_path
) {
ret = -1;
goto end;
}
ret = -1;
goto end;
}
@@
-1627,7
+1627,7
@@
int bt_ctf_stream_flush(struct bt_ctf_stream *stream)
packet_size_field = bt_ctf_field_structure_get_field_by_name(
stream->packet_context, "packet_size");
packet_size_field = bt_ctf_field_structure_get_field_by_name(
stream->packet_context, "packet_size");
- has_packet_size =
(packet_size_field != NULL)
;
+ has_packet_size =
packet_size_field
;
bt_ctf_object_put_ref(packet_size_field);
}
bt_ctf_object_put_ref(packet_size_field);
}
This page took
0.028217 seconds
and
4
git commands to generate.