summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2004-11-30 20:58:52 +0000
committerPaul Smith <psmith@gnu.org>2004-11-30 20:58:52 +0000
commit6c9e53d64804a856580876f2019ce4ea1e42b4e0 (patch)
treea26254e95ce4f317d470904dd0d28ec0bc439de1 /main.c
parent49ca261bd5a40d933719ab6b2b1fd183a81bf35b (diff)
downloadgunmake-6c9e53d64804a856580876f2019ce4ea1e42b4e0.tar.gz
Fix problems with README and build.sh
Apply an old patch from Paul Eggert.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 700e4ba..763fd54 100644
--- a/main.c
+++ b/main.c
@@ -1919,8 +1919,8 @@ main (int argc, char **argv, char **envp)
#ifndef _AMIGA
for (p = environ; *p != 0; ++p)
- if ((*p)[MAKELEVEL_LENGTH] == '='
- && strneq (*p, MAKELEVEL_NAME, MAKELEVEL_LENGTH))
+ if (strneq (*p, MAKELEVEL_NAME, MAKELEVEL_LENGTH)
+ && (*p)[MAKELEVEL_LENGTH] == '=')
{
/* The SGI compiler apparently can't understand
the concept of storing the result of a function