mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: don't try to compress 0 length file content
This commit is contained in:
@ -756,6 +756,9 @@ _sysprof_recording_add_file_data (SysprofRecording *self,
|
||||
if (length < 0)
|
||||
length = strlen (contents);
|
||||
|
||||
if (length == 0)
|
||||
compress = FALSE;
|
||||
|
||||
if (compress)
|
||||
{
|
||||
compress_bytes = do_compress (contents, length, &compress_len);
|
||||
|
||||
Reference in New Issue
Block a user