From 717fc098be48613f1f05c191e9bbe11d0b6511e5 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Fri, 12 Mar 2021 13:16:17 +0000 Subject: [PATCH] fix_1486_effort2 https://github.com/Exiv2/exiv2/pull/1486#discussion_r593161473 --- src/value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/value.cpp b/src/value.cpp index d2ef5fbd..e02e465e 100644 --- a/src/value.cpp +++ b/src/value.cpp @@ -411,7 +411,7 @@ namespace Exiv2 { { value_ = buf; // ensure count>0 and nul terminated # https://github.com/Exiv2/exiv2/issues/1484 - if (value_.size() == 0 || (value_.size() > 0 && value_[value_.size()-1] != '\0')) value_ += '\0'; + if (value_.size() == 0 || value_[value_.size()-1] != '\0') value_ += '\0'; return 0; }