• Show log

    Commit

  • Hash : 59eb037f
    Author : Paul Eggert
    Date : 2020-07-01T16:45:41

    tests: pacify gcc -fanalyzer on zerosize_ptr
    
    * tests/test-memcasecmp.c (main):
    * tests/test-memchr.c (main):
    * tests/test-memchr2.c (main):
    * tests/test-memcmp.c (main):
    * tests/test-memmem.c (main):
    * tests/test-memrchr.c (main):
    * tests/unistr/test-chr.h (main):
    * tests/unistr/test-cmp.h (test_cmp):
    Check whether zerosize_ptr returns NULL before using it.
    This pacifies GCC 10.1’s new fanalyzer option, and matches
    other uses of zerosize_ptr.