mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +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;
|
to_write -= written;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self->filename == NULL)
|
||||||
|
self->filename = g_strdup (filename);
|
||||||
|
|
||||||
close (fd);
|
close (fd);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user