diff objgrep/mkpattern.c @ 168:ed1a06bf525d

objgrep: works after fixing a buglet
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 04 Jul 2014 01:01:39 +0000
parents c25367bb7656
children 77cd647375e5
line wrap: on
line diff
--- a/objgrep/mkpattern.c	Fri Jul 04 00:54:33 2014 +0000
+++ b/objgrep/mkpattern.c	Fri Jul 04 01:01:39 2014 +0000
@@ -125,7 +125,7 @@
 		if (!sym) {
 			irel->secbase = grep_section;
 			irel->extsym = 0;
-		} else if (sym->class == C_EXT && !sym->scnum == 0) {
+		} else if (sym->class == C_EXT && sym->scnum == 0) {
 			irel->extsym = sym;
 			irel->secbase = 0;
 		} else if (sym->class == C_STAT && sym->section &&