-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential null pointer dereferences in videodlg.cpp.
The compiler seems to believe that the m_d->m_videoList can be changed inside of some of these functions. Adding additional checks on the validity of this pointer eliminates changes of dereferencing the (possibly null) data pointer. Unsure why putting the results of getListCache() into a temporary variable eliminates the compiler warning about a null dereference, unless somehow that forces the compiler to prune paths and prune out the path that includes the nullptr.
- Loading branch information
1 parent
9569fb2
commit f81d273
Showing
1 changed file
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters