mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 02:55:59 +01:00
fix a 'format not a string literal and no format arguments' warning
This commit is contained in:
parent
8386b3abf4
commit
ed724cc03d
1 changed files with 1 additions and 3 deletions
|
@ -438,9 +438,7 @@ document_save(zathura_t* zathura, const char* path, bool overwrite)
|
||||||
gchar* file_path = girara_fix_path(path);
|
gchar* file_path = girara_fix_path(path);
|
||||||
if (!overwrite && g_file_test(file_path, G_FILE_TEST_EXISTS))
|
if (!overwrite && g_file_test(file_path, G_FILE_TEST_EXISTS))
|
||||||
{
|
{
|
||||||
gchar* message = g_strdup_printf("File already exists: %s. Use :write! to overwrite it.", file_path);
|
girara_error("File already exists: %s. Use :write! to overwrite it.", file_path);
|
||||||
girara_error(message);
|
|
||||||
g_free(message);
|
|
||||||
g_free(file_path);
|
g_free(file_path);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue