Mercurial > hg > graal-compiler
comparison src/os/windows/vm/os_windows.cpp @ 9059:17bf4d428955
8006103: [parfait] Possible null pointer dereference at hotspot/src/os/linux/vm/os_linux.cpp; os_windows.cpp; os_solaris.cpp; os_bsd.cpp
Reviewed-by: zgu, iklam
author | ccheung |
---|---|
date | Wed, 03 Apr 2013 16:43:09 -0700 |
parents | 6b803ba47588 |
children | 8be1318fbe77 |
comparison
equal
deleted
inserted
replaced
9058:bad3bed4b323 | 9059:17bf4d428955 |
---|---|
1175 jio_snprintf(buffer, buflen, "%s%s.dll", pname, fname); | 1175 jio_snprintf(buffer, buflen, "%s%s.dll", pname, fname); |
1176 retval = true; | 1176 retval = true; |
1177 } else if (strchr(pname, *os::path_separator()) != NULL) { | 1177 } else if (strchr(pname, *os::path_separator()) != NULL) { |
1178 int n; | 1178 int n; |
1179 char** pelements = split_path(pname, &n); | 1179 char** pelements = split_path(pname, &n); |
1180 if (pelements == NULL) { | |
1181 return false; | |
1182 } | |
1180 for (int i = 0 ; i < n ; i++) { | 1183 for (int i = 0 ; i < n ; i++) { |
1181 char* path = pelements[i]; | 1184 char* path = pelements[i]; |
1182 // Really shouldn't be NULL, but check can't hurt | 1185 // Really shouldn't be NULL, but check can't hurt |
1183 size_t plen = (path == NULL) ? 0 : strlen(path); | 1186 size_t plen = (path == NULL) ? 0 : strlen(path); |
1184 if (plen == 0) { | 1187 if (plen == 0) { |