Skip to content

Commit

Permalink
Fix bug in example evbuffer cb code; found by "blindmatrix" on source…
Browse files Browse the repository at this point in the history
…forge
  • Loading branch information
nmathewson committed Nov 8, 2011
1 parent 7f0e328 commit dd98db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ref7_evbuffer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ void count_megabytes_cb(struct evbuffer *buffer,

void operation_with_counted_bytes(void)
{
struct total_processed *tp = malloc(sizeof(tp));
struct total_processed *tp = malloc(sizeof(*tp));
struct evbuffer *buf = evbuffer_new();
tp->n = 0;
evbuffer_add_cb(buf, count_megabytes_cb, tp);
Expand Down

0 comments on commit dd98db7

Please sign in to comment.