diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2014-10-07 15:42:30 +1100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-07 08:45:27 +0200 |
commit | 476fc65b0fda4fed099ee31b04b926d27e9a5f28 (patch) | |
tree | 0561f91a9861da9111f42bc51f98449a52d83237 /sub/find_subfiles.h | |
parent | ec7bc388d1d87c5a2d64dde85628d49e25a9f8fd (diff) |
bstr: check strings before memcmp/strncasecmp
bstr.start can be NULL when bstr.len is 0, so don't call memcmp or
strncasecmp if that's the case. Passing NULL to string functions is
invalid C, even when the length is 0, and it causes Windows to raise an
invalid parameter error.
Should fix #1155
Diffstat (limited to 'sub/find_subfiles.h')
0 files changed, 0 insertions, 0 deletions