diff dmd/Util.d @ 136:9d194c848e3a

fixed a few null reference bugs, thx sagitario
author Trass3r
date Mon, 13 Sep 2010 23:27:38 +0200
parents 60bb0fe4563e
children 09c858522d55
line wrap: on
line diff
--- a/dmd/Util.d	Fri Sep 10 19:14:09 2010 +0100
+++ b/dmd/Util.d	Mon Sep 13 23:27:38 2010 +0200
@@ -386,7 +386,7 @@
 						for ( ; *p2; p2++)
 						{   if (islower(*p2))
 								*p2 &= ~0x20;
-							else if (isspace(*p))
+							else if (isspace(*p2))
 								memmove(p2, p2 + 1, strlen(p2));
 							else if (*p2 == '=')
 							{