From 2e785bfc13a5e12559c1ceec0879891ce9601fe7 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 28 Nov 2013 07:42:18 +0000 Subject: [PATCH] minor output improvement --- .../test_namestore_api_remove_not_existing_record.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index d35d867c5..d1a664b17 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c @@ -105,19 +105,20 @@ put_cont (void *cls, int32_t success, const char *emsg) switch (success) { case GNUNET_NO: + /* We expected GNUNET_NO, since record was not found */ GNUNET_SCHEDULER_add_now (&end, NULL); break; case GNUNET_OK: GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Namestore could remove non-existing record: `%s'\n", - emsg); + (NULL !=emsg) ? emsg : ""); GNUNET_SCHEDULER_add_now (&endbadly, NULL); break; case GNUNET_SYSERR: default: GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Namestore failed: `%s'\n", - emsg); + (NULL !=emsg) ? emsg : ""); GNUNET_SCHEDULER_add_now (&endbadly, NULL); break; } -- 2.25.1