mojoshader_preprocessor.c
changeset 622 59b3003f6494
parent 621 bbeb13128ddb
child 623 899d7618efef
--- a/mojoshader_preprocessor.c	Sat Feb 14 17:25:55 2009 -0500
+++ b/mojoshader_preprocessor.c	Sat Feb 14 17:48:18 2009 -0500
@@ -270,7 +270,7 @@
 static unsigned char hash_define(const char *sym)
 {
     unsigned char retval = 0;
-    while (sym)
+    while (*sym)
         retval += *(sym++);
     return retval;
 } // hash_define