This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch double-free
in repository legacy-imlib2.

View the commit online.

commit 6ff2ac0815f40bd984a06dfcf07016e32262fbe2
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Thu Dec 28 15:39:10 2023 +0100

    Consistently use #if IMLIB2_DEBUG (not #ifdef)
---
 src/modules/loaders/loader_png.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/modules/loaders/loader_png.c b/src/modules/loaders/loader_png.c
index a2901ac..ac603d8 100644
--- a/src/modules/loaders/loader_png.c
+++ b/src/modules/loaders/loader_png.c
@@ -338,7 +338,7 @@ _load(ImlibImage * im, int load_data)
    fptr = (unsigned char *)im->fi->fdata;
    fptr += _PNG_SIG_SIZE;
    seen_actl = false;
-#ifdef IMLIB2_DEBUG
+#if IMLIB2_DEBUG
    int                 ic = 0;
 #endif
 
@@ -358,7 +358,7 @@ _load(ImlibImage * im, int load_data)
              D("\n");
              if (!seen_actl)
                 goto scan_done; /* No acTL before IDAT - Regular PNG */
-#ifdef IMLIB2_DEBUG
+#if IMLIB2_DEBUG
              break;             /* Show all frames */
 #else
              if (ctx.pch_fctl)
@@ -397,7 +397,7 @@ _load(ImlibImage * im, int load_data)
 
           case PNG_TYPE_fdAT:
              D("\n");
-#ifdef IMLIB2_DEBUG
+#if IMLIB2_DEBUG
              break;             /* Show all frames */
 #else
              if (ctx.pch_fctl)
@@ -430,7 +430,7 @@ _load(ImlibImage * im, int load_data)
    png_process_data(png_ptr, info_ptr, fptr, _PNG_SIG_SIZE);
 
    fptr += _PNG_SIG_SIZE;
-#ifdef IMLIB2_DEBUG
+#if IMLIB2_DEBUG
    ic = 0;
 #endif
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to