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