diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-29 15:16:15 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-29 15:16:15 +0000 |
commit | c27c7537784e83cbcd652dc40e349c41b01c7c2d (patch) | |
tree | e7791a40b6b119fcaab50b13b7c3ecb161a305f6 /Build/source/texk/kpathsea | |
parent | 59534d24d2dee438cbcb9ba66d178a2dd9388125 (diff) |
Avoid compiler warning
git-svn-id: svn://tug.org/texlive/trunk@23746 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea')
-rw-r--r-- | Build/source/texk/kpathsea/win32/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/win32/fmtutil.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/win32/ChangeLog b/Build/source/texk/kpathsea/win32/ChangeLog index e781ed39260..e9395b5bce9 100644 --- a/Build/source/texk/kpathsea/win32/ChangeLog +++ b/Build/source/texk/kpathsea/win32/ChangeLog @@ -1,3 +1,7 @@ +2011-08-29 Peter Breitenlohner <peb@mppmu.mpg.de> + + * fmtutil.c: Add parens around assignment used as truth value. + 2011-08-11 Peter Breitenlohner <peb@mppmu.mpg.de> * fmtutil.c: Return zero or one (Errorcnt could be 256). diff --git a/Build/source/texk/kpathsea/win32/fmtutil.c b/Build/source/texk/kpathsea/win32/fmtutil.c index f713a2ea18e..495abf11f5c 100644 --- a/Build/source/texk/kpathsea/win32/fmtutil.c +++ b/Build/source/texk/kpathsea/win32/fmtutil.c @@ -401,7 +401,7 @@ flag = 1 : --all kpse_set_program_name(av[0], NULL); strcpy(Programname, kpse_invocation_short_name); - if (tmp = strrchr(Programname, '.')) { + if ((tmp = strrchr(Programname, '.'))) { if (strcasecmp (tmp, ".exe") == 0) *tmp = '\0'; } |