mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
3d93377f12
Because PL_DHashTableLookup() never returns null, GetInfoForFile() features not one but *two* can-never-fail null checks on its result. Having said that, the code as written works, at least for non-zero-sized files, because |entry->mFileSize| will always be zero if the lookup fails (thanks to PLDHashTable always being zeroed at construction, and |mMap| using PL_DHashClearEntryStub which also zeroes). But for zero-sized files the current code will act like they don't exist. Maybe this can't happen in practice, but it seems dangerous and so I've changed it so the new code will treat zero-sized files just like non-zero-sized files. --HG-- extra : rebase_source : c617862c23babb1726480faff771a8dfe586bfa1 |
||
---|---|---|
.. | ||
2d | ||
angle | ||
cairo | ||
doc | ||
gl | ||
graphite2 | ||
harfbuzz | ||
ipc | ||
layers | ||
ots | ||
qcms | ||
skia | ||
src | ||
tests | ||
thebes | ||
ycbcr | ||
moz.build |