mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
[refactor] Initialize variables to default values in multiple files
This commit is contained in:
16
tool/read.c
16
tool/read.c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user