gimp r26617 - in trunk: . plug-ins/file-psd
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26617 - in trunk: . plug-ins/file-psd
- Date: Sun, 17 Aug 2008 11:04:04 +0000 (UTC)
Author: neo
Date: Sun Aug 17 11:04:04 2008
New Revision: 26617
URL: http://svn.gnome.org/viewvc/gimp?rev=26617&view=rev
Log:
2008-08-17 Sven Neumann <sven gimp org>
* plug-ins/file-psd/psd-util.c (psd_set_error): changed to use
g_error_new_literal().
Modified:
trunk/ChangeLog
trunk/plug-ins/file-psd/psd-util.c
Modified: trunk/plug-ins/file-psd/psd-util.c
==============================================================================
--- trunk/plug-ins/file-psd/psd-util.c (original)
+++ trunk/plug-ins/file-psd/psd-util.c Sun Aug 17 11:04:04 2008
@@ -49,12 +49,16 @@
* Set error
*/
if (file_eof)
- *error = g_error_new (G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Unexpected end of file"));
+ {
+ *error = g_error_new (G_FILE_ERROR, G_FILE_ERROR_FAILED,
+ _("Unexpected end of file"));
+ }
else
- *error = g_error_new (G_FILE_ERROR,
- g_file_error_from_errno (err_no),
- "%s", g_strerror (err_no));
+ {
+ *error = g_error_new_literal (G_FILE_ERROR,
+ g_file_error_from_errno (err_no),
+ g_strerror (err_no));
+ }
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]