]> git.deb.at Git - pkg/abook.git/blobdiff - conff.c
cancel key support added
[pkg/abook.git] / conff.c
diff --git a/conff.c b/conff.c
index 7614fc295a44d60f15a37c9e6f7f08fc2398d987..80e9c5fb61b4ebcabef92e608f5ce8656d0c1c50 100644 (file)
--- a/conff.c
+++ b/conff.c
@@ -76,7 +76,8 @@ conff_add_key(struct conff_node **ptr, char *key, char *value, int flags)
                                return 1;
                }
        
-       if( (new_item = malloc(sizeof(struct conff_node))) == NULL )
+       if( (new_item = (struct conff_node *)malloc(sizeof(struct conff_node)))
+                       == NULL )
                return 5;
 
        if(replace) {