Message ID | 20151110111714.15310.78769.stgit@dwillia2-desk3.jf.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 801625099cbc |
Headers | show |
diff --git a/lib/test-libndctl.c b/lib/test-libndctl.c index bf9412df6bff..c406685f1c4d 100644 --- a/lib/test-libndctl.c +++ b/lib/test-libndctl.c @@ -524,7 +524,7 @@ static int check_btt_create(struct ndctl_region *region, struct ndctl_namespace const char *devname; char bdevpath[50]; void *buf = NULL; - ssize_t rc; + ssize_t rc = 0; if (!namespace->btt_settings) return 0;
lib/test-libndctl.c:626:2: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized] This only seems to trigger in rpm builds, but needs cleaning up nonetheless. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- lib/test-libndctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)