]> git.lizzy.rs Git - rust.git/blobdiff - src/rt/rust_builtin.c
Rollup merge of #21964 - semarie:openbsd-env, r=alexcrichton
[rust.git] / src / rt / rust_builtin.c
index 255fbdcbfcf5e78e1d771221f26e2bd8bd668a0c..b756602ead4f43286408ad769742f79e4fc32934 100644 (file)
@@ -47,7 +47,8 @@ extern char **environ;
 #endif
 #endif
 
-#if defined(__FreeBSD__) || defined(__linux__) || defined(__ANDROID__) || defined(__DragonFly__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__linux__) || defined(__ANDROID__) \
+  || defined(__DragonFly__) || defined(__OpenBSD__)
 extern char **environ;
 #endif
 
@@ -235,7 +236,7 @@ const char * rust_current_exe() {
 
         /* get realpath if possible */
         if ((argv[0] != NULL) && ((*argv[0] == '.') || (*argv[0] == '/')
-                               || (strstr(argv[0], "/") != NULL)))
+                                || (strstr(argv[0], "/") != NULL)))
 
             self = realpath(argv[0], NULL);
         else