libsysprof-capture: save filename if first save

This commit is contained in:
Christian Hergert
2019-05-19 17:18:38 -07:00
parent 19d24984ac
commit 395c801476

View File

@ -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;