Fix variable initializations
These variables are being used before being inititalized. This can trigger undefined behaviours, invalid free calls and jumps with invalid conditions. This errors where found using address sanitizers.
These variables are being used before being inititalized. This can trigger undefined behaviours, invalid free calls and jumps with invalid conditions. This errors where found using address sanitizers.