summaryrefslogtreecommitdiffstats
path: root/deskutils/gtodo/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-07 21:41:43 +0000
committerpav <pav@FreeBSD.org>2004-03-07 21:41:43 +0000
commit5b6e2c60403387aabfda90cb90f49b80f7afe1d2 (patch)
tree89f4ed904c0cdcd5ee5da78ad5ad762e1fb37ccf /deskutils/gtodo/files
parent9d2b956925881265d4157f4160f5f2497c091ed3 (diff)
downloadFreeBSD-ports-5b6e2c60403387aabfda90cb90f49b80f7afe1d2.zip
FreeBSD-ports-5b6e2c60403387aabfda90cb90f49b80f7afe1d2.tar.gz
- Fix build on -STABLE
Diffstat (limited to 'deskutils/gtodo/files')
-rw-r--r--deskutils/gtodo/files/patch-libgtodo-libgtodo.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/deskutils/gtodo/files/patch-libgtodo-libgtodo.c b/deskutils/gtodo/files/patch-libgtodo-libgtodo.c
new file mode 100644
index 0000000..3da2a8d
--- /dev/null
+++ b/deskutils/gtodo/files/patch-libgtodo-libgtodo.c
@@ -0,0 +1,47 @@
+--- libgtodo/libgtodo.c.orig Sun Feb 15 22:03:09 2004
++++ libgtodo/libgtodo.c Sun Mar 7 21:58:55 2004
+@@ -770,10 +770,10 @@
+ GTodoClient * gtodo_client_new_default(GError **error)
+ {
+ GError *tmp_error = NULL;
++ GTodoClient *cl = NULL;
+ /* check if the error is good or wrong. */
+ g_return_val_if_fail(error == NULL || *error == NULL,FALSE);
+
+- GTodoClient *cl = NULL;
+ cl = g_malloc(sizeof(GTodoClient));
+ cl->xml_path = g_strdup_printf("file:///%s/.gtodo/todos", g_getenv("HOME"));
+ /* check, open or create the correct xml file */
+@@ -793,6 +793,7 @@
+ GTodoClient * gtodo_client_new_from_file(char *filename, GError **error)
+ {
+ GError *tmp_error = NULL;
++ GTodoClient *cl = NULL;
+ /* check if the error is good or wrong. */
+ g_return_val_if_fail(error == NULL || *error == NULL,FALSE);
+ if(debug)g_print("Trying to create a new client %s\n", filename);
+@@ -802,7 +803,6 @@
+ g_propagate_error(error, tmp_error);
+ return NULL;
+ }
+- GTodoClient *cl = NULL;
+ cl = g_malloc(sizeof(GTodoClient));
+ cl->xml_path = g_strdup(filename);
+ /* check, open or create the correct xml file */
+@@ -832,12 +832,13 @@
+ GTodoList * gtodo_client_get_category_list(GTodoClient *cl)
+ {
+ xmlNodePtr cur;
+- GTodoList *list = g_malloc(sizeof(GTodoList));
+- list->list = NULL;
+ int repos = 0;
++ GTodoCategory *cat;
++ GTodoList *list;
+ cl->number_of_categories = 0;
++ list = g_malloc(sizeof(GTodoList));
++ list->list = NULL;
+ cur = cl->root->xmlChildrenNode;
+- GTodoCategory *cat;
+
+ while(cur != NULL){
+ if(xmlStrEqual(cur->name, (const xmlChar *)"category")){
OpenPOWER on IntegriCloud