client: tweaks to code for detecting GPUs via a child process.

This commit is contained in:
Charlie Fenton 2013-06-26 05:42:15 -07:00
parent 4d74c5abbd
commit f03c4a0393
1 changed files with 5 additions and 2 deletions

View File

@ -329,8 +329,11 @@ int COPROCS::read_coproc_info_file(vector<string> &warnings) {
if (!f) return ERR_FOPEN;
XML_PARSER xp(&mf);
mf.init_file(f);
if (!xp.parse_start("coprocs")) return ERR_XML_PARSE;
if (!xp.parse_start("coprocs")) {
fclose(f);
return ERR_XML_PARSE;
}
while (!xp.get_tag()) {
if (xp.match_tag("/coprocs")) {
fclose(f);