diff lwasm/symbol.c @ 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 2c24602be78f
children 3d50022e16e7
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);