Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 08 Feb 2016 21:21:39 UTC Commit: a52777f8cb567855cd006884f1c07fe6a0ca195a https://github.com/geany/geany-plugins/commit/a52777f8cb567855cd006884f1c07f...
Log Message: ----------- debugger: Avoid possible NULL dereference
Modified Paths: -------------- debugger/src/debug.c debugger/src/envtree.c
Modified: debugger/src/debug.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -399,7 +399,7 @@ static gboolean on_watch_key_pressed_callback(GtkWidget *widget, GdkEvent *even
/* check whether only empty row was selected */ if (1 != gtk_tree_selection_count_selected_rows(selection) || - gtk_tree_path_compare((GtkTreePath*)rows->data, empty_path)) + (rows && gtk_tree_path_compare((GtkTreePath*)rows->data, empty_path))) { /* path reference to select after deleteing finishes */ GtkTreeRowReference *reference_to_select = NULL;
Modified: debugger/src/envtree.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -110,7 +110,7 @@ static void delete_selected_rows(void)
/* check whether only empty row was selected */ if (1 != gtk_tree_selection_count_selected_rows(selection) || - gtk_tree_path_compare((GtkTreePath*)rows->data, empty_path)) + (rows && gtk_tree_path_compare((GtkTreePath*)rows->data, empty_path))) { GtkTreePath *path; /* get references to the selected rows and find out what to
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org