gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: fix shutdown logic


From: gnunet
Subject: [taler-anastasis] branch master updated: fix shutdown logic
Date: Sun, 21 Feb 2021 19:49:20 +0100

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

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 38db393  fix shutdown logic
38db393 is described below

commit 38db39320ce6db1d112b636a903a990f349cf203
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Feb 21 19:49:15 2021 +0100

    fix shutdown logic
---
 src/cli/anastasis-cli-redux.c | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/src/cli/anastasis-cli-redux.c b/src/cli/anastasis-cli-redux.c
index 962cd10..b49b132 100644
--- a/src/cli/anastasis-cli-redux.c
+++ b/src/cli/anastasis-cli-redux.c
@@ -105,19 +105,21 @@ persist_new_state (json_t *state,
     }
     return;
   }
-  char *state_str = json_dumps (state,
-                                JSON_INDENT (2)); /* fixme: maybe use 
JSON_COMPACT for production? */
-  if (-1 >=
-      fprintf (stdout,
-               "%s",
-               state_str))
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "Could not dump state to stdout\n");
+    char *state_str = json_dumps (state,
+                                  JSON_INDENT (2)); /* fixme: maybe use 
JSON_COMPACT for production? */
+    if (-1 >=
+        fprintf (stdout,
+                 "%s",
+                 state_str))
+    {
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                  "Could not dump state to stdout\n");
+      GNUNET_free (state_str);
+      return;
+    }
     GNUNET_free (state_str);
-    return;
   }
-  GNUNET_free (state_str);
 }
 
 
@@ -134,6 +136,8 @@ action_cb (void *cls,
            enum TALER_ErrorCode error_code,
            json_t *result_state)
 {
+  (void) cls;
+  ra = NULL;
   if (NULL != result_state)
     persist_new_state (result_state,
                        output_filename);

-- 
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]