28 lines
830 B
Diff
28 lines
830 B
Diff
From: Egbert Eich <eich@suse.com>
|
|
Date: Sat Jul 10 14:57:29 2021 +0200
|
|
Subject: pr_att(): Fix uninitialized variable
|
|
Patch-mainline: Not yet
|
|
Git-repo: https://github.com/Unidata/netcdf-c
|
|
Git-commit: 66eade948d044832b0ca5feff824e1aca3c7fe68
|
|
References:
|
|
|
|
Fix uninitialized variable in error path.
|
|
|
|
Signed-off-by: Egbert Eich <eich@suse.com>
|
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
|
---
|
|
ncdump/ncdump.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
diff --git a/ncdump/ncdump.c b/ncdump/ncdump.c
|
|
index d333cc37..41f44683 100644
|
|
--- a/ncdump/ncdump.c
|
|
+++ b/ncdump/ncdump.c
|
|
@@ -896,6 +896,7 @@ pr_att(
|
|
value = *((uint64_t *)data + i);
|
|
break;
|
|
default:
|
|
+ value = 0; /* GCC */
|
|
error("enum must have an integer base type: %d", base_nc_type);
|
|
}
|
|
NC_CHECK( nc_inq_enum_ident(ncid, att.type, value,
|