[geany/geany] f36615: Fix return with no value within a function returning non-void (oops)
Colomban Wendling
git-noreply at xxxxx
Mon May 5 12:52:05 UTC 2014
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Mon, 05 May 2014 12:52:05 UTC
Commit: f366150f7a12de1ee591c4c14771510e811fbf26
https://github.com/geany/geany/commit/f366150f7a12de1ee591c4c14771510e811fbf26
Log Message:
-----------
Fix return with no value within a function returning non-void (oops)
Modified Paths:
--------------
src/editor.c
Modified: src/editor.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -3213,7 +3213,7 @@ gint editor_do_comment(GeanyEditor *editor, gint line, gboolean allow_empty_line
gboolean break_loop = FALSE, single_line = FALSE;
GeanyFiletype *ft;
- g_return_if_fail(editor != NULL && editor->document->file_type != NULL);
+ g_return_val_if_fail(editor != NULL && editor->document->file_type != NULL, 0);
if (line < 0)
{ /* use selection or current line */
--------------
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