X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fd.c;h=2e05313ea26ece1fd65315e80561fdd626f45fe1;hp=6f9266f47a56cd8dee3e99b8651d12a89bb4069b;hb=0cbd0ac87ebe208b0d47df28e86c16886bdb687d;hpb=1c8226eae0e976d940366cd10bd708d8e4d0bca5 diff --git a/fd.c b/fd.c index 6f9266f4..2e05313e 100644 --- a/fd.c +++ b/fd.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2011 Andre Noll + * Copyright (C) 2006-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -563,6 +563,9 @@ out: int para_munmap(void *start, size_t length) { int err; + + if (!start) + return 0; if (munmap(start, length) >= 0) return 1; err = errno;