Restore state restoration capabilities
Obtained from: http://sourceforge.net/mailarchive/forum.php?thread_id=4791405&forum_id=5986
This commit is contained in:
parent
4f614301fc
commit
3303f296f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114979
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= gq
|
||||
PORTVERSION= 1.0b1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= gqclient
|
||||
|
11
net/gq/files/patch-src::state.c
Normal file
11
net/gq/files/patch-src::state.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/state.c.orig Thu Jul 29 09:44:27 2004
|
||||
+++ src/state.c Thu Jul 29 09:44:51 2004
|
||||
@@ -754,7 +754,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- if (n != NULL && v->type != 0) {
|
||||
+ if (n != NULL && v!=NULL && v->type != 0) {
|
||||
char *ep;
|
||||
|
||||
assert(v);
|
24
net/gq/files/patch-src::xmlparse.c
Normal file
24
net/gq/files/patch-src::xmlparse.c
Normal file
@ -0,0 +1,24 @@
|
||||
--- src/xmlparse.c.orig Thu Jul 29 09:46:26 2004
|
||||
+++ src/xmlparse.c Thu Jul 29 09:47:09 2004
|
||||
@@ -51,7 +51,7 @@
|
||||
#include "xmlparse.h"
|
||||
|
||||
#define malloc g_malloc
|
||||
-#define calloc(n,s) g_malloc0(n * s)
|
||||
+#define calloc(n,s) g_malloc0((n) * (s))
|
||||
|
||||
#define TAGSTACK_INCR 20
|
||||
|
||||
@@ -162,10 +162,11 @@
|
||||
e->attrs = NULL;
|
||||
if (attrs) {
|
||||
for (i = 0 ; attrs[i] ; i++) ;
|
||||
- e->attrs = calloc(i, sizeof(xmlChar *));
|
||||
+ e->attrs = calloc(i+1, sizeof(xmlChar *));
|
||||
for (i = 0 ; attrs[i] ; i++) {
|
||||
e->attrs[i] = strdup(attrs[i]);
|
||||
}
|
||||
+ e->attrs[i] = NULL;
|
||||
}
|
||||
|
||||
/* lookup handler */
|
Loading…
Reference in New Issue
Block a user