blob: f184b2d1ee5fcd743604c07b06ba9e5d0b40d8ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-ac,v 1.1 2005/04/05 20:47:39 rillig Exp $
Needed for gcc-2.95.
--- src/htmltext.c.orig Mon Mar 14 21:33:37 2005
+++ src/htmltext.c Mon Apr 4 00:37:14 2005
@@ -2667,10 +2667,12 @@ offset_to_pointer_validated (const gchar
gsize
html_text_sanitize (const gchar **str, gint *len)
{
+ gchar *end;
+
g_return_val_if_fail (str != NULL, 0);
g_return_val_if_fail (len != NULL, 0);
- gchar *end = offset_to_pointer_validated (*str, *len, len);
+ end = offset_to_pointer_validated (*str, *len, len);
if (end) {
return end - *str;
} else {
|