projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Provide sane defaults
[babeltrace.git]
/
formats
/
ctf-text
/
ctf-text.c
diff --git
a/formats/ctf-text/ctf-text.c
b/formats/ctf-text/ctf-text.c
index 2e9509e71cf281672f11c1a2afcbbbbfd001d8f7..8d84c37f932163462659d32633905f1e590b5d9d 100644
(file)
--- a/
formats/ctf-text/ctf-text.c
+++ b/
formats/ctf-text/ctf-text.c
@@
-66,6
+66,8
@@
struct trace_descriptor *ctf_text_open_trace(const char *path, int flags)
switch (flags & O_ACCMODE) {
case O_WRONLY:
+ if (!path)
+ path = "/dev/stdout";
fp = fopen(path, "w");
if (!fp)
goto error;
This page took
0.025064 seconds
and
4
git commands to generate.