Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
initialize member next NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
h4child committed Mar 29, 2018
1 parent 15575c6 commit ce2dc72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/framebot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,8 +1287,6 @@ Message * send_video_note(Bot * bot, char * chat_id, char * filename, long int d
free(ifile.videonote.reply_to_message_id);
mem_store_free(input);

if(!s_json)
return NULL;

message = message_parse(s_json->content);

Expand Down
6 changes: 6 additions & 0 deletions src/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ User * user_parse(json_t *json){
language_code = json_object_get(puser, "language_code");
object->language_code =alloc_string(json_string_value(language_code));

object->next = NULL;

return object;
}

Expand Down Expand Up @@ -205,6 +207,8 @@ MessageEntity * message_entity_parse(json_t *json){
user = json_object_get(pmessage_entity,"user");
object->user = user_parse(user);

object->next = NULL;

return object;
}

Expand Down Expand Up @@ -916,6 +920,8 @@ ChatMember *chat_member_parse (json_t *json) {
json_object_get(json, "can_add_web_page_previews");
object->can_add_web_page_previews = json_boolean_value(can_add_web_page_previews);

object->next = NULL;

return object;
}

Expand Down

0 comments on commit ce2dc72

Please sign in to comment.