Fixed optional args in SCCudaModuleGetGlobal

remotes/origin/master-1.1.x
Martin Beyer 15 years ago committed by Victor Julien
parent 5dc5d73a66
commit 396b750414

@ -3289,9 +3289,9 @@ int SCCudaModuleGetGlobal(CUdeviceptr *dptr, unsigned int *bytes, CUmodule hmod,
{
CUresult result = 0;
if (dptr == NULL || bytes == NULL || name == NULL) {
if (name == NULL) {
SCLogError(SC_ERR_INVALID_ARGUMENTS, "Invalid argument supplied. "
"dptr is NULL or bytes is NULL or name is NULL");
"name is NULL");
goto error;
}

Loading…
Cancel
Save