diff options
author | why <why@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-01-30 20:17:17 +0000 |
---|---|---|
committer | why <why@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-01-30 20:17:17 +0000 |
commit | 4af3352bee017a0cf67d56f072f38555f3f46997 (patch) | |
tree | 62038d64417944554d7711714fdfcc1a6deab7da /ext | |
parent | 6bcf6e6d949ee380d95417bf2cb0e4902768008c (diff) | |
download | unicorn-4af3352bee017a0cf67d56f072f38555f3f46997.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@16 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'ext')
-rw-r--r-- | ext/http11/http11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/http11/http11.c b/ext/http11/http11.c index cbfb55e..9d7673b 100644 --- a/ext/http11/http11.c +++ b/ext/http11/http11.c @@ -79,9 +79,9 @@ void HttpParser_free(void *data) { VALUE HttpParser_alloc(VALUE klass) { - TRACE(); VALUE obj; http_parser *hp = calloc(1, sizeof(http_parser)); + TRACE(); hp->http_field = http_field; hp->request_method = request_method; hp->path_info = path_info; @@ -233,9 +233,9 @@ void URIClassifier_free(void *data) VALUE URIClassifier_alloc(VALUE klass) { - TRACE(); VALUE obj; struct tst *tst = tst_init(TRIE_INCREASE); + TRACE(); assert(tst && "failed to initialize trie structure"); obj = Data_Wrap_Struct(klass, NULL, URIClassifier_free, tst); |