(no commit message)
[oweals/gnunet.git] / src / transport / test_plugin_transport_https.c
index 735bab920daab5e60b2d4a0b02b92d34bd7bf9fa..caf7271054ca76534034828428a038ceecb79587 100644 (file)
@@ -884,7 +884,7 @@ notify_address (void *cls,
                 addrlen);
       return;
     }
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              _("Transport plugin notification for address: `%s':%u\n"),
              address,
              port);
@@ -1217,10 +1217,8 @@ run (void *cls,
                                                                                           "KEY_FILE",
                                                                                           &key_file);
   }
-  else
-  {
+  if (key_file == NULL)
          GNUNET_asprintf(&key_file,"https.key");
-  }
 
   if (0 == stat (key_file, &sbuf ))
   {
@@ -1239,10 +1237,8 @@ run (void *cls,
                                                                                     "CERT_FILE",
                                                                                     &cert_file);
   }
-  else
-  {
+  if (cert_file == NULL)
          GNUNET_asprintf(&cert_file,"https.cert");
-  }
 
   if (0 == stat (cert_file, &sbuf ))
   {