Port bug 1580128 - Simplify required env variables for fuzzing interface. r=me
authorJorg K <jorgk@jorgk.com>
Wed, 11 Sep 2019 00:11:00 +0200
changeset 36775 fc2d525229e607e2ae04152cde5bd41ad6c31c9d
parent 36774 4e5fad04693c7317198a4e6f869ee36c8bd65c79
child 36776 7bea3e17e209ebec8be4a5805ae1c0e73c6d5bed
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
reviewersme
bugs1580128
Port bug 1580128 - Simplify required env variables for fuzzing interface. r=me
mail/app/nsMailApp.cpp
--- a/mail/app/nsMailApp.cpp
+++ b/mail/app/nsMailApp.cpp
@@ -199,17 +199,17 @@ static int do_main(int argc, char* argv[
     Output("Couldn't initialize the broker services.\n");
     return 255;
   }
   config.sandboxBrokerServices = brokerServices;
   config.sandboxPermissionsService = permissionsService;
 #endif
 
 #ifdef LIBFUZZER
-  if (getenv("LIBFUZZER"))
+  if (getenv("FUZZER"))
     gBootstrap->XRE_LibFuzzerSetDriver(fuzzer::FuzzerDriver);
 #endif
 
   // Note: FF needs to keep in sync with LauncherProcessWin,
   //       TB doesn't have that file.
   const char* acceptableParams[] = {"compose", "mail", nullptr};
   EnsureCommandlineSafe(argc, argv, acceptableParams);