diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-03-12 13:00:16 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-03-12 13:00:16 +0100 |
commit | f3d9cf9f788e5b98d270309c03f44b26568944eb (patch) | |
tree | 43c4a759c22871ea56b0a9f8180b93023dc0e31a /mach-defpager | |
parent | 727d2825675e9d67999a15d2e9903bf8af854395 (diff) |
mach-defpager: fix error handling in S_default_pager_object_set_size
Fix a compiler warning about kr being potentially being uninitialized.
* mach-defpager/default_pager.c (S_default_pager_object_set_size):
Initialize kr.
Diffstat (limited to 'mach-defpager')
-rw-r--r-- | mach-defpager/default_pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c index ebbff608..33d72b3a 100644 --- a/mach-defpager/default_pager.c +++ b/mach-defpager/default_pager.c @@ -3761,7 +3761,7 @@ S_default_pager_object_set_size (mach_port_t pager, mach_port_seqno_t seqno, vm_size_t limit) { - kern_return_t kr; + kern_return_t kr = KERN_SUCCESS; default_pager_t ds; ds = pager_port_lookup(pager); |