Provide sane defaults
[babeltrace.git] / formats / ctf-text / ctf-text.c
index 2e9509e71cf281672f11c1a2afcbbbbfd001d8f7..8d84c37f932163462659d32633905f1e590b5d9d 100644 (file)
@@ -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.022459 seconds and 4 git commands to generate.