X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf-text%2Fctf-text.c;h=8d84c37f932163462659d32633905f1e590b5d9d;hp=2e9509e71cf281672f11c1a2afcbbbbfd001d8f7;hb=b61922b5e7b4d7ec5ed960c3d842886b5a97f549;hpb=c8b219a3168dd382a167a72406e268550005e662 diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c index 2e9509e7..8d84c37f 100644 --- 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;