Skip to content

Commit

Permalink
Attempt fix segfault with delim
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jul 18, 2015
1 parent def2b00 commit 136ae58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routes/yaf_route_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ int yaf_route_map_route(yaf_route_t *route, yaf_request_t *request) {
} else {
query_str = NULL;
}
} else {
query_str = NULL;
}
}

Expand Down Expand Up @@ -161,6 +163,7 @@ zend_string * yaf_route_map_assemble(yaf_route_t *this_ptr, zval *info, zval *qu

ctl_prefer = zend_read_property(yaf_route_map_ce, this_ptr, ZEND_STRL(YAF_ROUTE_MAP_VAR_NAME_CTL_PREFER), 1, NULL);
delim = zend_read_property(yaf_route_map_ce, this_ptr, ZEND_STRL(YAF_ROUTE_MAP_VAR_NAME_DELIMETER), 1, NULL);

if (IS_STRING == Z_TYPE_P(delim) && Z_STRLEN_P(delim)) {
has_delim = 1;
}
Expand Down

0 comments on commit 136ae58

Please sign in to comment.