uvcgadget: silence a maybe-uninitialized warning

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7875>
This commit is contained in:
Matthew Waters 2024-11-13 17:00:17 +11:00
parent 6eee4a513b
commit a566dfd339

View file

@ -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);