Skip to content

Commit

Permalink
Merge pull request #9 from alderz/master
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwaterworth committed Feb 4, 2012
2 parents ded4387 + 334cb67 commit d7ca3a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ void (*error_handler)(const char *) = default_error_handler;
void dispatch() {
handler *cur;
char *path_info = get_path_info();
if (path_info == NULL) {
error_handler("NULL path_info");
return;
}
char *method_str = get_method();
if (method_str == NULL) {
error_handler("NULL method_str");
Expand Down

0 comments on commit d7ca3a5

Please sign in to comment.