Skip to content

Commit 4a0020c

Browse files
author
ripley
committed
add parentheses, const
git-svn-id: https://svn.r-project.org/R/trunk@88011 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent e26c860 commit 4a0020c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,9 +937,9 @@ void setup_Rmainloop(void)
937937
If LANG or LC_ALL has been set to a non-existing locale, we assume
938938
that the user wants to ne informed. */
939939

940-
char *s;
940+
const char *s;
941941

942-
if (!(s = getenv("LANG") && *s) && !(s = getenv("LC_ALL") && *s))
942+
if (!( (s = getenv("LANG")) && *s) && !( (s = getenv("LC_ALL")) && *s))
943943
setenv("LANG", "C", 1);
944944
}
945945

0 commit comments

Comments
 (0)