[geany/geany] 412a72: Fix warning

Jiří Techet git-noreply at geany.org
Sun Apr 24 15:07:14 UTC 2022


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Wed, 12 Jan 2022 20:17:49 UTC
Commit:      412a72b2c4feab7752f5172e9c9d5f81a00fd00d
             https://github.com/geany/geany/commit/412a72b2c4feab7752f5172e9c9d5f81a00fd00d

Log Message:
-----------
Fix warning


Modified Paths:
--------------
    src/sciwrappers.c

Modified: src/sciwrappers.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -749,7 +749,7 @@ gchar *sci_get_contents(ScintillaObject *sci, gint buffer_len)
 {
 	gchar *text;
 
-	g_return_if_fail(buffer_len != 0);
+	g_return_val_if_fail(buffer_len != 0, NULL);
 
 	if (buffer_len < 0)
 		buffer_len = sci_get_length(sci) + 1;



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list