New Defects reported by Coverity Scan for digiKam
scan-admin at coverity.com
scan-admin at coverity.com
Thu Nov 24 06:22:52 GMT 2016
Hi,
Please find the latest report on new defect(s) introduced to digiKam found with Coverity Scan.
1 new defect(s) introduced to digiKam found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1394671: Null pointer dereferences (FORWARD_NULL)
/home/gilles/Devel/5.x/core/libs/album/albummanager.cpp: 2080 in Digikam::AlbumManager::findSAlbumsBySearchType(int) const()
________________________________________________________________________________________________________
*** CID 1394671: Null pointer dereferences (FORWARD_NULL)
/home/gilles/Devel/5.x/core/libs/album/albummanager.cpp: 2080 in Digikam::AlbumManager::findSAlbumsBySearchType(int) const()
2074
2075 QList<SAlbum*> AlbumManager::findSAlbumsBySearchType(int searchType) const
2076 {
2077 QList<SAlbum*> albums;
2078 for (Album* album = d->rootSAlbum->firstChild(); album; album = album->next())
2079 {
>>> CID 1394671: Null pointer dereferences (FORWARD_NULL)
>>> Assigning: "sAlbum" = "dynamic_cast <Digikam::SAlbum *>(album)".
2080 SAlbum* sAlbum = dynamic_cast<SAlbum*>(album);
2081 if (sAlbum->searchType() == searchType)
2082 {
2083 albums.append(sAlbum);
2084 }
2085 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZIlZa20oQ0xtvekoaSXYBwgZYh7yqZ4T857KvBwnvzEg-3D-3D_Vulo-2FzB1zz6bqp-2F-2Bl-2FpBD-2BzKk1Nu56XtBupWJitvnTDk5S-2Fnc23ULn6JLOo0sXENenHynekLsHLO7AC0I2Lk-2BVa3-2Fgo50e9y4Ii4Lxnr6Pk9RCWFBpbRu11YI2y7fsUFD5uV6kz6CsT76BX1RIWcZhE5RskuiN62ZzqF8rEea2dRk0dOSawSNYwpsxlprPfkwwzaKWuWQBG6jz8aMg-2BHNMqSoYABVfD-2BA-2BtUGrtndLo-3D
To manage Coverity Scan email notifications for "digikam-devel at kde.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4g-2BkTwi3e7HlDkvMAkUMj2-2FFhZ2O-2BELTTy-2Fl1ea1gxKqmntchu8-2BeAOkExRtki0102MqL9th0o1rOws5-2F-2FQDFdjkpeJaB-2FdUMxPk-2B7ZQUGV0-3D_Vulo-2FzB1zz6bqp-2F-2Bl-2FpBD-2BzKk1Nu56XtBupWJitvnTDk5S-2Fnc23ULn6JLOo0sXENBo8zNi8mLrF2qIxLTfrUQm4rQwopUvq9pnGtNqgTE7-2FI3jkOlZkCVRZdQlrazx7w7VUj7gXxE9D8c6Os68y0SvpXI-2BCl-2F52zidqkyEIyfSimjTy0c166sOccoDqBO7TlP3J-2BtrUB3BEF9di-2FEO8mXZDi-2BbkB1vkr3kWpZhsB8EI-3D
More information about the Digikam-devel
mailing list