Linux Renesas SOC kernel development
 help / color / mirror / Atom feed
* [PATCH] src: gen-image: Fix compiler warning
@ 2026-09-17 10:19 Paul Elder
  2026-09-17 21:07 ` Laurent Pinchart
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Elder @ 2026-09-17 10:19 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: laurent.pinchart, Paul Elder

Fix compiler warning for maybe uninitialized.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
---
 src/gen-image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gen-image.c b/src/gen-image.c
index 26d7f0d28417..401e1316ae5a 100644
--- a/src/gen-image.c
+++ b/src/gen-image.c
@@ -386,7 +386,7 @@ static int pnm_read_integer(int fd)
 
 static struct image *pnm_read(const char *filename)
 {
-	struct image *image;
+	struct image *image = NULL;
 	unsigned int width;
 	unsigned int height;
 	char buffer[2];
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-17 21:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-17 10:19 [PATCH] src: gen-image: Fix compiler warning Paul Elder
2026-09-17 21:07 ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox