gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis-gtk] branch master updated: remove bogus asserts


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: remove bogus asserts
Date: Sun, 07 Mar 2021 23:16:40 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis-gtk.

The following commit(s) were added to refs/heads/master by this push:
     new af9ecd5  remove bogus asserts
af9ecd5 is described below

commit af9ecd5d05bd62a59620664fdfc10821f0d24ff6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Mar 7 23:16:38 2021 +0100

    remove bogus asserts
---
 src/anastasis/anastasis-gtk_action.c                             | 2 +-
 src/anastasis/anastasis-gtk_handle-continent-activated.c         | 5 +++--
 src/anastasis/anastasis-gtk_handle-continent-unselected.c        | 4 ----
 src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c | 1 -
 4 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/anastasis/anastasis-gtk_action.c 
b/src/anastasis/anastasis-gtk_action.c
index fc02618..2952737 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -325,7 +325,7 @@ AG_action_cb (void *cls,
   else
   {
     json_decref (redux_state);
-    redux_state = json_deep_copy (response);
+    redux_state = json_incref (response);
     GNUNET_assert (0 == persist_state (redux_state));
   }
   if (GNUNET_OK ==
diff --git a/src/anastasis/anastasis-gtk_handle-continent-activated.c 
b/src/anastasis/anastasis-gtk_handle-continent-activated.c
index b70fa66..ad5d066 100644
--- a/src/anastasis/anastasis-gtk_handle-continent-activated.c
+++ b/src/anastasis/anastasis-gtk_handle-continent-activated.c
@@ -49,7 +49,9 @@ anastasis_gtk_continent_activated (GtkTreeView *tree_view,
   gchar *continent_name;
   json_t *arguments;
 
-  if (! gtk_tree_model_get_iter (model, &iter, path))
+  if (! gtk_tree_model_get_iter (model,
+                                 &iter,
+                                 path))
   {
     GNUNET_break (0);
     return;
@@ -69,6 +71,5 @@ anastasis_gtk_continent_activated (GtkTreeView *tree_view,
                                arguments,
                                &AG_action_cb,
                                NULL);
-  GNUNET_assert (NULL != ra);
   json_decref (arguments);
 }
diff --git a/src/anastasis/anastasis-gtk_handle-continent-unselected.c 
b/src/anastasis/anastasis-gtk_handle-continent-unselected.c
index 2c5f532..f0b7803 100644
--- a/src/anastasis/anastasis-gtk_handle-continent-unselected.c
+++ b/src/anastasis/anastasis-gtk_handle-continent-unselected.c
@@ -45,15 +45,11 @@ anastasis_gtk_continent_unselected (GtkTreeSelection 
*selection,
   if (gtk_tree_selection_get_selected (selection,
                                        &model,
                                        NULL))
-  {
-    GNUNET_break (0);
     return;
-  }
   AG_freeze ();
   ra = ANASTASIS_redux_action (redux_state,
                                "unselect_continent",
                                NULL,
                                &AG_action_cb,
                                NULL);
-  GNUNET_assert (NULL != ra);
 }
diff --git a/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c 
b/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
index dba558b..008ed0d 100644
--- a/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
+++ b/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
@@ -62,7 +62,6 @@ AG_forward_country_selecting (void)
                                arguments,
                                &AG_action_cb,
                                NULL);
-  GNUNET_assert (NULL != ra);
   json_decref (arguments);
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]