[exim-cvs] Bug 1506: Silence static checkers.

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] Bug 1506: Silence static checkers.
Gitweb: http://git.exim.org/exim.git/commitdiff/6c08476d09bf337921e7ba73e109e5f72fddfdf9
Commit:     6c08476d09bf337921e7ba73e109e5f72fddfdf9
Parent:     cc4a2e40ed9f114108a72ee8cfaa453ce478e833
Author:     Lars Mueller <lmuelle@???>
AuthorDate: Wed Jul 23 07:22:52 2014 -0700
Committer:  Todd Lyons <tlyons@???>
CommitDate: Wed Jul 23 07:22:52 2014 -0700


    Bug 1506: Silence static checkers.


    Re-adds a return NULL which was removed because it was redundant. Static
      checkers don't parse the logic, so adding it back to make them happy.
---
 src/src/expand.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/src/src/expand.c b/src/src/expand.c
index 23009bc..70d7c7d 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -1879,7 +1879,8 @@ switch (vp->type)
#endif

}
-return NULL; /* Fix broken static checkers, already done in if() above */
+
+return NULL; /* Unknown variable. Silences static checkers. */
}