diff options
Diffstat (limited to 'trace-record.c')
-rw-r--r-- | trace-record.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/trace-record.c b/trace-record.c index 1ad1e19..58c9915 100644 --- a/trace-record.c +++ b/trace-record.c | |||
@@ -581,6 +581,8 @@ static void set_plugin(const char *name) | |||
581 | path = tracecmd_get_tracing_file("options/func_stack_trace"); | 581 | path = tracecmd_get_tracing_file("options/func_stack_trace"); |
582 | fp = fopen(path, "w"); | 582 | fp = fopen(path, "w"); |
583 | tracecmd_put_tracing_file(path); | 583 | tracecmd_put_tracing_file(path); |
584 | if (!fp) | ||
585 | return; | ||
584 | fwrite(&zero, 1, 1, fp); | 586 | fwrite(&zero, 1, 1, fp); |
585 | fclose(fp); | 587 | fclose(fp); |
586 | } | 588 | } |