Skip to content
Browse files

Fix a possible null pointer deref.

  • Loading branch information...
1 parent f0496ec commit 36dbf36edfed60e54e091de0ae46ffc7cc5da92b @alexrp alexrp committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mci/core/common.d
View
2 src/mci/core/common.d
@@ -146,7 +146,7 @@ body
exit:
static if (!is(typeof(return) == void))
- return *res;
+ return res ? *res : typeof(return).init;
}
public bool powerOfTwo(T)(T value)

0 comments on commit 36dbf36

Please sign in to comment.
Something went wrong with that request. Please try again.