diff -r 288ed486e5c3 -r 42dd28107cd8 mojoshader.c --- a/mojoshader.c Sat Feb 07 00:35:17 2009 -0500 +++ b/mojoshader.c Sat Feb 07 00:54:27 2009 -0500 @@ -262,9 +262,7 @@ static inline char *StrDup(Context *ctx, const char *str) { char *retval = (char *) Malloc(ctx, strlen(str) + 1); - if (retval == NULL) - out_of_memory(ctx); - else + if (retval != NULL) strcpy(retval, str); return retval; } // StrDup