client: COPROC_NVIDIA, COPROC_ATI and COPROC_INTEL constructors must initialize the entire struct, not just the GPU type field

This commit is contained in:
Charlie Fenton 2012-12-10 07:29:33 -08:00 committed by Oliver Bock
parent 407d16a7d9
commit 60f750e395
2 changed files with 10 additions and 3 deletions

View File

@ -7526,3 +7526,10 @@ Charlie 10 Dec 2012
gpu_opencl.cpp
lib/
coproc.cpp,.h
Charlie 10 Dec 2012
- client: COPROC_NVIDIA, COPROC_ATI and COPROC_INTEL constructors
must initialize the entire struct, not just the GPU type field.
lib/
coproc.h

View File

@ -321,7 +321,7 @@ struct COPROC_NVIDIA : public COPROC {
void write_xml(MIOFILE&, bool scheduler_rpc);
#endif
COPROC_NVIDIA(): COPROC() {
strcpy(type, proc_type_name_xml(PROC_TYPE_NVIDIA_GPU));
clear();
}
void get(
bool use_all,
@ -360,7 +360,7 @@ struct COPROC_ATI : public COPROC {
void write_xml(MIOFILE&, bool scheduler_rpc);
#endif
COPROC_ATI(): COPROC() {
strcpy(type, proc_type_name_xml(PROC_TYPE_AMD_GPU));
clear();
}
void get(
bool use_all,
@ -385,7 +385,7 @@ struct COPROC_INTEL : public COPROC {
void write_xml(MIOFILE&, bool scheduler_rpc);
#endif
COPROC_INTEL(): COPROC() {
strcpy(type, proc_type_name_xml(PROC_TYPE_INTEL_GPU));
clear();
}
void get(
bool use_all,