[gimp/gimp-2-10] CID 228074: Missing varargs init or cleanup in file-tiff-io.c
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] CID 228074: Missing varargs init or cleanup in file-tiff-io.c
- Date: Sun, 20 Oct 2019 10:33:12 +0000 (UTC)
commit a7a18cc83fdeb7f3694225f533d48a055aa0084e
Author: Sabri Ünal <libreajans gmail com>
Date: Sun Oct 20 10:32:57 2019 +0000
CID 228074: Missing varargs init or cleanup in file-tiff-io.c
missing va_end: va_end was not called for ap_test.
plug-ins/file-tiff/file-tiff-io.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/plug-ins/file-tiff/file-tiff-io.c b/plug-ins/file-tiff/file-tiff-io.c
index 7f1c16b373..4c45b9e190 100644
--- a/plug-ins/file-tiff/file-tiff-io.c
+++ b/plug-ins/file-tiff/file-tiff-io.c
@@ -149,6 +149,8 @@ tiff_io_warning (const gchar *module,
va_arg (ap_test, const char *); /* ignore first arg */
tag = va_arg (ap_test, int);
+
+ va_end (ap_test);
}
/* for older versions of libtiff? */
else if (! strcmp (fmt, "unknown field with tag %d (0x%x) ignored") ||
@@ -160,6 +162,8 @@ tiff_io_warning (const gchar *module,
G_VA_COPY (ap_test, ap);
tag = va_arg (ap_test, int);
+
+ va_end (ap_test);
}
/* Workaround for: http://bugzilla.gnome.org/show_bug.cgi?id=131975
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]