-simplify logic
[oweals/gnunet.git] / src / transport / test_http_common.c
index 80b7cbc5b9ecb6b2644ebc7ab9ab87e18e8659dc..ace20e097d25c25a0fe315655d6e0d689caba284 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2009, 2010 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2009, 2010 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -228,17 +228,18 @@ main (int argc, char *argv[])
   if (NULL != spa)
   {
     clean (spa);
+    spa = NULL;
     GNUNET_break (0);
   }
 
-  http_split_address ("http://");
+  spa = http_split_address ("http://");
   if (NULL != spa)
   {
     clean (spa);
     GNUNET_break (0);
   }
 
-  http_split_address ("://");
+  spa = http_split_address ("://");
   if (NULL != spa)
   {
     clean (spa);