]> granicus.if.org Git - libevent/commitdiff
test_evutil_rtrim: add another missing check.
authorNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:42:20 +0000 (19:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:42:20 +0000 (19:42 -0400)
test/regress_util.c

index 9f8c3165c5305c0fe3582d35957fdae486034791..d64d002495ab4c0cf24c2c96ef8816dbd3b5aad0 100644 (file)
@@ -441,6 +441,7 @@ test_evutil_rtrim(void *ptr)
        do {                                            \
            if (cp) mm_free(cp);                        \
            cp = mm_strdup(s);                          \
+           tt_assert(cp);                              \
            evutil_rtrim_lws_(cp);                      \
            tt_str_op(cp, ==, result);                  \
        } while(0)