mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-07 12:51:33 +00:00
[Refs #87: Static Analysis] Be explicit about checking pointer
This commit is contained in:
1 parent
441c97e09b
commit
dae776fb33
1 file changed
+5
-4
@@ -541,12 +541,13 @@ AddrInfo GetAddr(wstring req)
|
||||
{
|
||||
wcsncpy_s(ret.funcName, file, 126);
|
||||
|
||||
wchar_t *voidparam = wcsstr(ret.funcName, L"(void)");
|
||||
|
||||
// remove stupid (void) for empty parameters
|
||||
if(wcsstr(ret.funcName, L"(void)"))
|
||||
if (voidparam != NULL)
|
||||
{
|
||||
wchar_t *a = wcsstr(ret.funcName, L"(void)");
|
||||
*(a+1) = L')';
|
||||
*(a+2) = 0;
|
||||
*(voidparam + 1) = L')';
|
||||
*(voidparam + 2) = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user