From a566dfd339998f2a041badbc3d70faf3cd512aa6 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 13 Nov 2024 17:00:17 +1100 Subject: [PATCH] uvcgadget: silence a maybe-uninitialized warning Part-of: --- subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c b/subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c index 3f43b80f6e..853fc21def 100644 --- a/subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c +++ b/subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c @@ -769,7 +769,7 @@ configfs_parse_streaming_header (const char *path, struct dirent **entries; unsigned int i; int n_entries; - int ret; + int ret = 0; /* Find all entries corresponding to a format and parse them. */ n_entries = scandir (path, &entries, format_filter, alphasort);