Fix two issues detected by Flössie

This commit is contained in:
heckflosse
2017-10-25 17:09:46 +02:00
parent 9a17962f4b
commit 2e645debb4
2 changed files with 4 additions and 3 deletions

View File

@@ -857,8 +857,7 @@ bool FramesData::hasIPTC (unsigned int frame) const
tm FramesData::getDateTime (unsigned int frame) const
{
if (frames.empty() || frame >= frames.size() ) {
tm emptytm = {0, 0, 0, 0, 0, 0, 0, 0, 0};
return emptytm;
return {};
} else {
return frames.at(frame)->getDateTime ();
}

View File

@@ -17,9 +17,11 @@
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
*/
#include "labimage.h"
#include <cstring>
#include <memory>
#include "labimage.h"
namespace rtengine
{