[refactor] Initialize variables to default values in multiple files

This commit is contained in:
2025-08-01 15:34:36 +01:00
parent 81633e4445
commit 788c7a2bc7
18 changed files with 120 additions and 115 deletions

View File

@@ -26,10 +26,10 @@
int read(unsigned long long sector_no, char *path)
{
aaruformatContext *ctx;
int32_t res;
uint32_t length;
uint8_t *data;
aaruformatContext *ctx = NULL;
int32_t res = 0;
uint32_t length = 0;
uint8_t *data = NULL;
ctx = aaruf_open(path);
@@ -76,10 +76,10 @@ int read(unsigned long long sector_no, char *path)
int read_long(unsigned long long sector_no, char *path)
{
aaruformatContext *ctx;
int32_t res;
uint32_t length;
uint8_t *data;
aaruformatContext *ctx = NULL;
int32_t res = 0;
uint32_t length = 0;
uint8_t *data = NULL;
ctx = aaruf_open(path);