Skip to content

Commit

Permalink
[libomptarget] Avoid unintialized GenericPluginTy::NumDevices
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed Aug 13, 2023
1 parent 1a38843 commit 1c822e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ struct GenericPluginTy {

private:
/// Number of devices available for the plugin.
int32_t NumDevices;
int32_t NumDevices = 0;

/// Array of pointers to the devices. Initially, they are all set to nullptr.
/// Once a device is initialized, the pointer is stored in the position given
Expand Down

0 comments on commit 1c822e1

Please sign in to comment.