mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +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)
|
if (length < 0)
|
||||||
length = strlen (contents);
|
length = strlen (contents);
|
||||||
|
|
||||||
|
if (length == 0)
|
||||||
|
compress = FALSE;
|
||||||
|
|
||||||
if (compress)
|
if (compress)
|
||||||
{
|
{
|
||||||
compress_bytes = do_compress (contents, length, &compress_len);
|
compress_bytes = do_compress (contents, length, &compress_len);
|
||||||
|
|||||||
Reference in New Issue
Block a user