X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=conff.c;h=80e9c5fb61b4ebcabef92e608f5ce8656d0c1c50;hb=3cea3c8809447c5d6658671b78b9af7137fd9b0d;hp=7614fc295a44d60f15a37c9e6f7f08fc2398d987;hpb=00afcdbf62dbf2233c2e09fc9b0abe305a6988e7;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) {