Skip to content

Commit

Permalink
Fix issue in error count (MapServer#4960)
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed Jul 25, 2014
1 parent 2a3ec0a commit cc9625e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maperror.c
Expand Up @@ -196,6 +196,7 @@ static errorObj *msInsertErrorObj(void)
new_error->isreported = ms_error->isreported;
strlcpy(new_error->routine, ms_error->routine, sizeof(new_error->routine));
strlcpy(new_error->message, ms_error->message, sizeof(new_error->message));
new_error->errorcount = ms_error->errorcount;

ms_error->next = new_error;
ms_error->code = MS_NOERR;
Expand Down Expand Up @@ -350,6 +351,7 @@ void msSetError(int code, const char *message_fmt, const char *routine, ...)
}
strlcpy(ms_error->message, message, sizeof(ms_error->message));
ms_error->code = code;
ms_error->errorcount = 0;
}
else
++ms_error->errorcount;
Expand Down

0 comments on commit cc9625e

Please sign in to comment.