Skip to content

Commit

Permalink
Use g_return_val_if_fail() in non-void sci_get_contents()
Browse files Browse the repository at this point in the history
  • Loading branch information
kugel- committed Feb 11, 2022
1 parent 305b324 commit 1fc1291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sciwrappers.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1fc1291

Please sign in to comment.