[Xfce4-commits] [apps/squeeze] 01/01: Changed debug checks to real checks that do occur

noreply at xfce.org noreply at xfce.org
Mon Dec 1 21:23:12 CET 2014


This is an automated email from the git hooks/post-receive script.

peter pushed a commit to branch master
in repository apps/squeeze.

commit 42c76964921b77c25ce2b1694ed29093d55bba7b
Author: Peter de Ridder <peter at xfce.org>
Date:   Mon Dec 1 21:21:25 2014 +0100

    Changed debug checks to real checks that do occur
---
 libsqueeze/archive.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libsqueeze/archive.c b/libsqueeze/archive.c
index 763e065..432c657 100644
--- a/libsqueeze/archive.c
+++ b/libsqueeze/archive.c
@@ -226,8 +226,9 @@ lsq_archive_n_entry_properties ( const LSQArchive *archive )
 {
 #ifdef DEBUG
     g_return_val_if_fail( LSQ_IS_ARCHIVE( archive ), 0 );
-    g_return_val_if_fail( LSQ_IS_SUPPORT_APP( archive->priv->refresh_app ), 0 );
 #endif
+    if ( NULL == archive->priv->refresh_app )
+        return LSQ_ARCHIVE_PROP_USER;
     return lsq_support_app_get_n_properties( archive->priv->refresh_app ) + LSQ_ARCHIVE_PROP_USER;
 }
 
@@ -285,7 +286,6 @@ const gchar *
 lsq_archive_get_entry_property_name ( const LSQArchive *archive, guint n )
 {
     g_return_val_if_fail( LSQ_IS_ARCHIVE( archive ), NULL );
-    g_return_val_if_fail( LSQ_IS_SUPPORT_APP( archive->priv->refresh_app ), 0 );
     g_return_val_if_fail( lsq_archive_n_entry_properties( archive ) > n , NULL );
 
     switch( n )
@@ -297,6 +297,7 @@ lsq_archive_get_entry_property_name ( const LSQArchive *archive, guint n )
             return _("Mime type");
 
         default:
+	    g_return_val_if_fail( LSQ_IS_SUPPORT_APP( archive->priv->refresh_app ), NULL );
             return lsq_support_app_get_property_name( archive->priv->refresh_app, n - LSQ_ARCHIVE_PROP_USER );
     }
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list