blob: ce3d6879426d9fc1af5434e5f298fdc9097d576c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-bd,v 1.3 2009/07/06 22:01:34 joerg Exp $
--- lasso/xml/xml.c.orig 2009-03-27 17:12:48.000000000 +0100
+++ lasso/xml/xml.c
@@ -1554,8 +1554,9 @@ lasso_node_new_from_xmlNode(xmlNode *xml
}
}
}
-
- node = lasso_node_new_from_xmlNode_with_type(xmlnode, typename);
+ if (typename) {
+ node = lasso_node_new_from_xmlNode_with_type(xmlnode, typename);
+ }
lasso_release(typename);
return node;
@@ -1592,7 +1593,7 @@ is_base64(const char *message)
const char *c;
c = message;
- while (*c != 0 && (isalnum(*c) || *c == '+' || *c == '/' || *c == '\n' || *c == '\r')) c++;
+ while (*c != 0 && (isalnum((unsigned char)*c) || *c == '+' || *c == '/' || *c == '\n' || *c == '\r')) c++;
while (*c == '=' || *c == '\n' || *c == '\r') c++; /* trailing = */
if (*c == 0)
|