From 6b5c46cfb09b7e2d163b01a5626a5133ed15459c Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 25 Jan 2023 22:54:47 +0100 Subject: [PATCH] imageinfo_ni: try to fix compiler warning Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9d65dc02d9ddc97ede6e0e6bff2d2ce02fdceb7a Author: vanhofen Date: 2023-01-25 (Wed, 25 Jan 2023) Origin message was: ------------------ - imageinfo_ni: try to fix compiler warning ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/imageinfo_ni.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/imageinfo_ni.cpp b/src/gui/imageinfo_ni.cpp index fff97bd3a..db0392c57 100644 --- a/src/gui/imageinfo_ni.cpp +++ b/src/gui/imageinfo_ni.cpp @@ -446,7 +446,7 @@ int CImageInfoNI::get_MTD_Info() size_t len; int i = 0; - memset(&mtd_info, 0, sizeof(mtd_info)); + mtd_info.clear(); buffer = NULL; if (!(fh = fopen("/proc/mtd", "r")))