diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-01 10:13:20 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-01 10:13:20 +0000 |
commit | 7cba04f6dedcf888170496bf8f1857c4069d1131 (patch) | |
tree | affaa99c83934efb6c95255ee6bf36973f5be860 /bsd-user/bsdload.c | |
parent | 660f11be541813be5f09fbaf44d8e7c6d5a5bbfe (diff) | |
download | qemu-7cba04f6dedcf888170496bf8f1857c4069d1131.zip qemu-7cba04f6dedcf888170496bf8f1857c4069d1131.tar.gz qemu-7cba04f6dedcf888170496bf8f1857c4069d1131.tar.bz2 |
More NULL pointer fixes
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'bsd-user/bsdload.c')
-rw-r--r-- | bsd-user/bsdload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c index 05fd20a..14a93bf 100644 --- a/bsd-user/bsdload.c +++ b/bsd-user/bsdload.c @@ -163,7 +163,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp, bprm.p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int); for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */ - bprm.page[i] = 0; + bprm.page[i] = NULL; retval = open(filename, O_RDONLY); if (retval < 0) return retval; |