From c27c7537784e83cbcd652dc40e349c41b01c7c2d Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 29 Aug 2011 15:16:15 +0000 Subject: Avoid compiler warning git-svn-id: svn://tug.org/texlive/trunk@23746 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/win32/ChangeLog | 4 ++++ Build/source/texk/kpathsea/win32/fmtutil.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'Build') 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 + + * fmtutil.c: Add parens around assignment used as truth value. + 2011-08-11 Peter Breitenlohner * 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'; } -- cgit v1.2.3