Skip to content

Commit

Permalink
Initialize error and message
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Feb 21, 2023
1 parent fb4e41e commit b4b1377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HeterogeneousCore/CUDAUtilities/interface/cudaCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ namespace cms {
if (LIKELY(result == CUDA_SUCCESS))
return true;

const char* error;
const char* message;
const char* error = nullptr;
const char* message = nullptr;
cuGetErrorName(result, &error);
cuGetErrorString(result, &message);
abortOnCudaError(file, line, cmd, error, message, description);
Expand Down

0 comments on commit b4b1377

Please sign in to comment.