fixed: klocwork bug #305
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 1 Sep 2010 10:59:11 +0000 (10:59 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 1 Sep 2010 10:59:11 +0000 (10:59 +0000)
src/transport/test_plugin_transport_https.c

index 6e33a1675b5246f58c4ecb57fb760a51425f4548..caf7271054ca76534034828428a038ceecb79587 100644 (file)
@@ -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 ))
   {