Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed stupid linked list bug.
Double-penance: it is cut-and-pasted in three places!
  • Loading branch information
icculus committed Feb 10, 2009
1 parent 7c8ac35 commit 1a78532
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mojoshader.c
Expand Up @@ -404,7 +404,7 @@ static void failf(Context *ctx, const char *fmt, ...)
while (item != NULL)
{
prev = item;
item = error->next;
item = item->next;
} // while

if (prev == NULL)
Expand Down
2 changes: 1 addition & 1 deletion mojoshader_assembler.c
Expand Up @@ -152,7 +152,7 @@ static void failf(Context *ctx, const char *fmt, ...)
while (item != NULL)
{
prev = item;
item = error->next;
item = item->next;
} // while

if (prev == NULL)
Expand Down
2 changes: 1 addition & 1 deletion mojoshader_preprocessor.c
Expand Up @@ -658,7 +658,7 @@ include_close = (MOJOSHADER_includeClose) 0x1;
while (item != NULL)
{
prev = item;
item = error->next;
item = item->next;
} // while

if (prev == NULL)
Expand Down

0 comments on commit 1a78532

Please sign in to comment.