aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-09-10 09:47:29 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-09-10 09:47:29 -0500
commit0f2adc19eb971903fff6168a41f50e5ca362f86e (patch)
treed43085e9eff6ca6e2e0a520a71e3aaf190028d77
parent1aabcfdbaed72d091216579463dfd511ad1a7a3e (diff)
downloadlibpng-0f2adc19eb971903fff6168a41f50e5ca362f86e.tar.gz
[libpng16] Trying to avoid a UMR in png_set_text_2(().
-rw-r--r--pngset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pngset.c b/pngset.c
index 15531bbe6..d5e683ba1 100644
--- a/pngset.c
+++ b/pngset.c
@@ -886,7 +886,7 @@ png_set_text_2(png_const_structrp png_ptr, png_inforp info_ptr,
if (text_ptr[i].text == NULL)
text_is_null=1;
- if (text_ptr[i].text[0] == '\0')
+ else if (text_ptr[i].text[0] == '\0')
text_0_is_0=1;
if (text_is_null)