diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/anastasis/anastasis-gtk_handle-policy-activate.c | 9 | ||||
-rw-r--r-- | src/anastasis/anastasis-gtk_pe-edit-policy.c | 6 |
2 files changed, 6 insertions, 9 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-policy-activate.c b/src/anastasis/anastasis-gtk_handle-policy-activate.c index ddb89ec..006dea1 100644 --- a/src/anastasis/anastasis-gtk_handle-policy-activate.c +++ b/src/anastasis/anastasis-gtk_handle-policy-activate.c @@ -33,10 +33,10 @@ void anastasis_gtk_review_policy_treeview_row_activated_cb ( - GtkTreeView *tree_view, - GtkTreePath *path, - GtkTreeViewColumn *column, - gpointer user_data) + GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + gpointer user_data) { GtkTreeModel *tm = gtk_tree_view_get_model (tree_view); GtkTreeIter iter; @@ -52,7 +52,6 @@ anastasis_gtk_review_policy_treeview_row_activated_cb ( GNUNET_break (0); return; } - gtk_tree_path_free (path); gtk_tree_model_get (tm, &iter, AG_PRMC_POLICY_INDEX, diff --git a/src/anastasis/anastasis-gtk_pe-edit-policy.c b/src/anastasis/anastasis-gtk_pe-edit-policy.c index eece3ee..2647680 100644 --- a/src/anastasis/anastasis-gtk_pe-edit-policy.c +++ b/src/anastasis/anastasis-gtk_pe-edit-policy.c @@ -277,18 +277,16 @@ ap_matches (const char *type, json_t *methods; size_t index; json_t *method; - const char *status; status = json_string_value (json_object_get (ap, - "status")); - + "status")); if (0 != strcasecmp (status, "ok")) { + /* provider is down, cannot proceed */ return false; } - methods = json_object_get (ap, "methods"); GNUNET_break (NULL != methods); |