gnucash stable: Fix Windows build error in gnc_html_webkit1.c

Robert Fewell bobit at code.gnucash.org
Tue Sep 3 09:11:44 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/4f0862ba (commit)
	from  https://github.com/Gnucash/gnucash/commit/616ebf0c (commit)



commit 4f0862ba5560fde758ea5f984bf68b248870837b
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Tue Sep 3 13:59:38 2024 +0100

    Fix Windows build error in gnc_html_webkit1.c
    
    load_to_stream requires a return value for the Pre-condition Assertion

diff --git a/gnucash/html/gnc-html-webkit1.c b/gnucash/html/gnc-html-webkit1.c
index 8164b64131..3693220751 100644
--- a/gnucash/html/gnc-html-webkit1.c
+++ b/gnucash/html/gnc-html-webkit1.c
@@ -474,7 +474,7 @@ load_to_stream( GncHtmlWebkit* self, URLType type,
     DEBUG( "type %s, location %s, label %s", type ? type : "(null)",
            location ? location : "(null)", label ? label : "(null)");
 
-    g_return_if_fail( self != NULL );
+    g_return_val_if_fail( self != NULL, FALSE );
 
     if ( gnc_html_stream_handlers != NULL )
     {



Summary of changes:
 gnucash/html/gnc-html-webkit1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list