changeset 71:6dafb4f0fa56

Fix crash during symbol registration when using object target
author lost@l-w.ca
date Sun, 10 Apr 2011 20:45:21 -0600
parents ceab04fd2969
children 84eb35251849
files lwasm/symbol.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/symbol.c	Sun Apr 10 13:15:12 2011 -0600
+++ b/lwasm/symbol.c	Sun Apr 10 20:45:21 2011 -0600
@@ -59,7 +59,7 @@
 			/* if se has no section but se1 does, we go first */
 			if (se -> section == NULL && se1 -> section != NULL)
 				return se2;
-			if (se -> section != NULL && se -> section != NULL)
+			if (se -> section != NULL && se1 -> section != NULL)
 			{
 				/* compare section names and if se < se1, return */
 				i = strcasecmp(se -> section -> name, se1 -> section -> name);