mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
libsysprof: avoid some GError creation
This commit is contained in:
@ -490,10 +490,11 @@ sysprof_elf_loader_load (SysprofElfLoader *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
failure:
|
failure:
|
||||||
g_set_error_literal (error,
|
if (error != NULL)
|
||||||
G_FILE_ERROR,
|
g_set_error_literal (error,
|
||||||
G_FILE_ERROR_NOENT,
|
G_FILE_ERROR,
|
||||||
"Failed to locate file");
|
G_FILE_ERROR_NOENT,
|
||||||
|
"Failed to locate file");
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user