- return value
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 5 Mar 2012 09:24:50 +0000 (09:24 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 5 Mar 2012 09:24:50 +0000 (09:24 +0000)
src/namestore/test_namestore_api_create_update.c

index 22313aca9d61df9777e1f012a40a0a6a2182f98c..737c64a3d976eb27bcf1973285d8e6c89de94d60 100644 (file)
@@ -327,7 +327,7 @@ create_updated_cont (void *cls, int32_t success, const char *emsg)
     res = 0;
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Updated record for name `%s'\n", name);
   }
-  if (success == GNUNET_OK)
+  else if (success == GNUNET_OK)
   {
     res = 1;
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "FAIL, Create new record for name `%s'\n", name);