mirror of https://github.com/BOINC/boinc.git
Lib: ignore check_return defects
This is intended because parse_str() won't change physical_name if it fails. fixes CID 27684,27719 found by Coverity
This commit is contained in:
parent
1204715903
commit
a4fa988ec7
|
@ -478,6 +478,7 @@ int boinc_resolve_filename(
|
|||
// If it's the <soft_link> XML tag, return its value,
|
||||
// otherwise, return the original file name
|
||||
//
|
||||
// coverity[check_return]
|
||||
if (p) parse_str(buf, "<soft_link>", physical_name, len);
|
||||
return 0;
|
||||
}
|
||||
|
@ -499,6 +500,7 @@ int boinc_resolve_filename_s(const char *virtual_name, string& physical_name) {
|
|||
buf[0] = 0;
|
||||
p = fgets(buf, 512, fp);
|
||||
fclose(fp);
|
||||
// coverity[check_return]
|
||||
if (p) parse_str(buf, "<soft_link>", physical_name);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue