From 60f750e395540996f3f0f29bb13e835e386a6981 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 10 Dec 2012 07:29:33 -0800 Subject: [PATCH] client: COPROC_NVIDIA, COPROC_ATI and COPROC_INTEL constructors must initialize the entire struct, not just the GPU type field --- checkin_notes | 7 +++++++ lib/coproc.h | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index ef60e1f062..b7d88053ab 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/lib/coproc.h b/lib/coproc.h index 29fc2067d8..56bb77529b 100644 --- a/lib/coproc.h +++ b/lib/coproc.h @@ -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,