[gnumeric] compilation: fix warning.



commit 8cd92d675dd7dd33e4bd38dc3da5483ad18f4335
Author: Morten Welinder <terra gnome org>
Date:   Sun Sep 25 19:04:16 2022 -0400

    compilation: fix warning.

 plugins/html/html_read.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plugins/html/html_read.c b/plugins/html/html_read.c
index d78a3eb8a..6ed02a37e 100644
--- a/plugins/html/html_read.c
+++ b/plugins/html/html_read.c
@@ -125,10 +125,12 @@ html_append_trim_text (GString *buf, const xmlChar *text)
 static void
 html_rtrim (GString *buf)
 {
+       gchar* last;
+
        if (buf->len == 0)
                return;
 
-       gchar* last = g_utf8_prev_char (buf->str + buf->len);
+       last = g_utf8_prev_char (buf->str + buf->len);
        if (g_unichar_isspace (g_utf8_get_char (last)))
                g_string_truncate(buf, last - buf->str);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]