X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=conff.c;h=80e9c5fb61b4ebcabef92e608f5ce8656d0c1c50;hb=4128f78f5543bebc7cd1868736855207019f1f71;hp=7614fc295a44d60f15a37c9e6f7f08fc2398d987;hpb=d2379cecf22c9e32d07b371fb05615d9bb2917aa;p=pkg%2Fabook.git diff --git a/conff.c b/conff.c index 7614fc2..80e9c5f 100644 --- 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) {