args should always be checked
authorCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jun 2016 03:08:45 +0000 (12:08 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jun 2016 03:08:45 +0000 (12:08 +0900)
atom/browser/api/atom_api_app.cc

index 76fbdb1..5d4aafc 100644 (file)
@@ -418,7 +418,7 @@ bool App::Relaunch(mate::Arguments* js_args) {
 
   mate::Dictionary options;
   if (js_args->GetNext(&options)) {
-    if (options.Get("execPath", &exec_path) || options.Get("args", &args))
+    if (options.Get("execPath", &exec_path) | options.Get("args", &args))
       override_argv = true;
   }