Skip to content

Commit

Permalink
Fixed the Segmentation fault error when non valid url is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
PrathameshLohakare-Druva authored and selsta committed Nov 26, 2022
1 parent 771a2a6 commit dff8a57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ static bool get_data_with_retry(char *url, char **hlsfile_source, char **finall_

if (http_code != 200) {
MSG_API("{\"error_code\":%d, \"error_msg\":\"\"}\n", (int)http_code);
return false;
}

if (size == 0) {
Expand Down

0 comments on commit dff8a57

Please sign in to comment.