mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: save filename if first save
This commit is contained in:
@ -898,6 +898,9 @@ sysprof_capture_reader_save_as (SysprofCaptureReader *self,
|
||||
to_write -= written;
|
||||
}
|
||||
|
||||
if (self->filename == NULL)
|
||||
self->filename = g_strdup (filename);
|
||||
|
||||
close (fd);
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user