diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-03-12 13:10:04 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-03-12 13:10:04 +0100 |
commit | 3deb2d7685f9e9b502a992491f747c3a657e4d15 (patch) | |
tree | f069beddf2c11bb107c6239ff7c152a9656c62a0 /mach-defpager/kalloc.h | |
parent | f3d9cf9f788e5b98d270309c03f44b26568944eb (diff) |
mach-defpager: fix warning about uninitialized variable
Previously, failure to look up the given partition was detected after
the loop by checking whether the loop ran over all existing
partitions. Initialize part to NULL and check for that instead. This
retains the behavior, but expresses it in a way the compiler
understands better.
* mach-defpager/default_pager.c (destroy_paging_partition): Initialize
part to NULL and check for it still being NULL after the loop.
Diffstat (limited to 'mach-defpager/kalloc.h')
0 files changed, 0 insertions, 0 deletions