Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
int pakfire_config_read(struct pakfire_config* config, FILE* f) {
char section[SECTION_MAX_LENGTH] = "";
char key[KEY_MAX_LENGTH] = "";
- int r;
+ int r = -EINVAL;
char* line = NULL;
size_t l = 0;
Elf_Scn* section = NULL;
GElf_Shdr shdr;
Elf_Data* data;
- int r;
+ int r = -EINVAL;
// Walk through all sections
for (;;) {
struct pakfire_key_signature* signature, FILE* f) {
void* buffer = NULL;
size_t buffer_length = 0;
- int r;
+ int r = -EINVAL;
char* line = NULL;
size_t length = 0;
}
int pakfire_progress_update(struct pakfire_progress* p, unsigned long int value) {
- int r;
+ int r = -EINVAL;
// Report the change to the parent progress
if (p->parent) {