Skip to content

Commit

Permalink
fix crash due to uninitialized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliendavid committed Oct 30, 2024
1 parent ee626a4 commit 6eab35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/downloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -4898,7 +4898,7 @@ static void dm_sess_update_download_rate(GF_DownloadSession * sess)
static void gf_dm_data_received(GF_DownloadSession *sess, u8 *payload, u32 payload_size, Bool store_in_init, u32 *rewrite_size, u8 *original_payload)
{
u32 nbBytes, remaining, hdr_size;
u8 *data;
u8* data = NULL;
Bool first_chunk_in_payload = GF_TRUE;
Bool flush_chunk = GF_FALSE;
GF_NETIO_Parameter par;
Expand Down Expand Up @@ -6028,7 +6028,7 @@ static u32 http_parse_method(const char *comp)
static GF_Err wait_for_header_and_parse(GF_DownloadSession *sess)
{
GF_NETIO_Parameter par;
s32 bytesRead, BodyStart;
s32 bytesRead=0, BodyStart=0;
u32 res, i, buf_size;
s32 LinePos, Pos;
u32 method=0;
Expand Down

0 comments on commit 6eab35f

Please sign in to comment.