Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
KDE:KDE3
kdevelop3
kdevelop-translationUnit-may-return-NULL.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdevelop-translationUnit-may-return-NULL.patch of Package kdevelop3
diff -Naru kdevelop-3.5.5_orig/languages/cpp/cppcodecompletion.cpp kdevelop-3.5.5/languages/cpp/cppcodecompletion.cpp --- kdevelop-3.5.5_orig/languages/cpp/cppcodecompletion.cpp 2024-08-12 13:16:03.504898671 +0900 +++ kdevelop-3.5.5/languages/cpp/cppcodecompletion.cpp 2024-08-12 16:08:41.892838211 +0900 @@ -2055,7 +2055,9 @@ std::vector<CppCodeCompletion> vec; - TranslationUnitAST * ast = *m_pSupport->backgroundParser() ->translationUnit( m_activeFileName ); + ParsedFile *transUnit = m_pSupport->backgroundParser() ->translationUnit( m_activeFileName ); + TranslationUnitAST * ast = NULL; + if (!transUnit) ast = (TranslationUnitAST *) transUnit; m_pSupport->backgroundParser() ->unlock(); if ( !ast ) { kdDebug( 9007 ) << "background-parser is missing the translation-unit. The file needs to be reparsed." << endl;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor