gtranslator r3866 - in trunk: . src



Author: psanxiao
Date: Wed Oct 22 10:25:37 2008
New Revision: 3866
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3866&view=rev

Log:
       Patch by Baris Cicek  <baris teamforce name tr>
	    
	* src/po.c: 
	Checks if error is NULL. (Fixes bug #556654)



Modified:
   trunk/ChangeLog
   trunk/src/po.c

Modified: trunk/src/po.c
==============================================================================
--- trunk/src/po.c	(original)
+++ trunk/src/po.c	Wed Oct 22 10:25:37 2008
@@ -382,6 +382,9 @@
 	
 	if (po_file_is_empty (priv->gettext_po_file))
 	{
+        if (*error != NULL)
+            g_clear_error (error);
+
 		g_set_error (error,
 			     GTR_PO_ERROR,
 			     GTR_PO_ERROR_FILE_EMPTY,
@@ -394,6 +397,8 @@
 	 * Determine the message domains to track
 	 */
 	if(!(domains = po_file_domains(priv->gettext_po_file))) {
+        if (*error != NULL)
+            g_clear_error (error);
 		g_set_error(error,
 			    GTR_PO_ERROR,
 			    GTR_PO_ERROR_GETTEXT,
@@ -539,6 +544,8 @@
 	}
 	
 	if (priv->messages == NULL) {
+        if (*error != NULL)
+            g_clear_error (error);
 		g_set_error(error,
 			    GTR_PO_ERROR,
 			    GTR_PO_ERROR_OTHER,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]