commit | 7b5777d9b4db67815730cbc36d70164892dccfd6 | [log] [tgz] |
---|---|---|
author | Tim Duesterhus <tim@bastelstu.be> | Tue Mar 02 18:57:28 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Mar 03 05:07:10 2021 +0100 |
tree | da4941887f8d3fa280b8d981eca15d22e7c6e832 | |
parent | 154374cbc826add921884fa3ec25da517c562e71 [diff] [blame] |
CLEANUP: Use isttest(const struct ist) whenever possible Refactoring performed with the following Coccinelle patch: @@ struct ist i; @@ - i.ptr != NULL + isttest(i)
diff --git a/src/hpack-dec.c b/src/hpack-dec.c index debd611..4fa9bfd 100644 --- a/src/hpack-dec.c +++ b/src/hpack-dec.c
@@ -118,7 +118,7 @@ out.len = in.len; out.ptr = chunk_newstr(store); - if (unlikely(!out.ptr)) + if (unlikely(!isttest(out))) return out; if (unlikely(store->data + out.len > store->size)) {