[gdk-pixbuf/ebassi/for-master: 2/3] bmp: Use g_set_error_literal()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf/ebassi/for-master: 2/3] bmp: Use g_set_error_literal()
- Date: Fri, 16 Apr 2021 17:33:59 +0000 (UTC)
commit d9b59fb70cdade59f56710360c6b52e9a19d9a13
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Apr 16 18:32:02 2021 +0100
bmp: Use g_set_error_literal()
Never use g_set_error() without a format string.
gdk-pixbuf/io-bmp.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index b2d2a4f16..f2daf90ca 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -1307,10 +1307,10 @@ gdk_pixbuf__bmp_image_load_increment(gpointer data,
case READ_STATE_PALETTE:
if (!DecodeColormap (context->buff, context, error)) {
- g_set_error (error,
- GDK_PIXBUF_ERROR,
- GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
- _("Error while decoding colormap"));
+ g_set_error_literal (error,
+ GDK_PIXBUF_ERROR,
+ GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+ _("Error while decoding colormap"));
return FALSE;
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]