Mercurial > hg > truffle
diff src/os/windows/vm/os_windows.cpp @ 9062:8be1318fbe77
Merge
author | dcubed |
---|---|
date | Fri, 05 Apr 2013 10:38:08 -0700 |
parents | 0ca3dd0ffaba 17bf4d428955 |
children | 89e4d67fdd2a f36e073d56a4 6f817ce50129 |
line wrap: on
line diff
--- a/src/os/windows/vm/os_windows.cpp Thu Apr 04 21:15:43 2013 -0700 +++ b/src/os/windows/vm/os_windows.cpp Fri Apr 05 10:38:08 2013 -0700 @@ -1182,6 +1182,9 @@ } else if (strchr(pname, *os::path_separator()) != NULL) { int n; char** pelements = split_path(pname, &n); + if (pelements == NULL) { + return false; + } for (int i = 0 ; i < n ; i++) { char* path = pelements[i]; // Really shouldn't be NULL, but check can't hurt