mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: ignore zero length data
This commit is contained in:
@ -421,7 +421,8 @@ sysprof_document_lookup_file (GTask *task,
|
|||||||
const guint8 *data = sysprof_document_file_chunk_get_data (file_chunk, NULL);
|
const guint8 *data = sysprof_document_file_chunk_get_data (file_chunk, NULL);
|
||||||
guint size = sysprof_document_file_chunk_get_size (file_chunk);
|
guint size = sysprof_document_file_chunk_get_size (file_chunk);
|
||||||
|
|
||||||
g_byte_array_append (bytes, data, size);
|
if (size > 0)
|
||||||
|
g_byte_array_append (bytes, data, size);
|
||||||
|
|
||||||
was_found = TRUE;
|
was_found = TRUE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user