mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:51:17 +00:00
lib: Fix gcc 7 warning 'error: ‘fld’ may be used uninitialized in this function'
Warning breaks Debian Package build with gcc 7 which uses -Werror=maybe-uninitialized Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
176b305080
commit
79e68c7c5b
@ -424,7 +424,7 @@ void csv_clone_record(csv_t *csv, csv_record_t *in_rec, csv_record_t **out_rec)
|
||||
|
||||
void csv_remove_record(csv_t *csv, csv_record_t *rec)
|
||||
{
|
||||
csv_field_t *fld, *p_fld;
|
||||
csv_field_t *fld = NULL, *p_fld;
|
||||
|
||||
/* first check if rec belongs to this csv */
|
||||
if (!csv_is_record_valid(csv, rec)) {
|
||||
|
Loading…
Reference in New Issue
Block a user