From c5c7d665627e71310bb9f74578dc556c3384f373 Mon Sep 17 00:00:00 2001 From: borutr Date: Sun, 30 Oct 2005 20:07:50 +0000 Subject: [PATCH] * src/SDCCutil.c: corrected double comparison typo git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3923 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ src/SDCCutil.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 48d39328..535ad0b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-10-30 Borut Razem + + * src/SDCCutil.c: corrected double comparison typo + 2005-10-27 Maarten Brock * device/lib/medium/Makefile: added for new memory model medium diff --git a/src/SDCCutil.c b/src/SDCCutil.c index 134774f3..a08cd115 100644 --- a/src/SDCCutil.c +++ b/src/SDCCutil.c @@ -138,7 +138,7 @@ getBinPath(const char *prel) return path; } /* not enough info in prel; do it with module name */ - else if (0 != GetModuleFileName(NULL, path, sizeof path) != 0 && + else if (0 != GetModuleFileName(NULL, path, sizeof path) && NULL != (p = strrchr(path, DIR_SEPARATOR_CHAR))) { *p = '\0'; return path; -- 2.39.5