Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool ScriptDebugServer::executeSkipPauseRequest(....)
- {
- const char* v8MethodName;
- switch (request)
- {
- case ScriptDebugListener::NoSkip:
- return false;
- case ScriptDebugListener::Continue:
- return true;
- case ScriptDebugListener::StepInto:
- v8MethodName = stepIntoV8MethodName;
- case ScriptDebugListener::StepOut:
- v8MethodName = stepOutV8MethodName;
- }
- v8::Handle<v8::Value> argv[] = { executionState };
- callDebuggerMethod(stepIntoV8MethodName, 1, argv);
- return true;
- }
- This suspicious code was found in WebKit project by PVS-Studio static code analyzer.
- Warning message is:
- V519 The 'v8MethodName' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 412, 414. ScriptDebugServer.cpp 414
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment