diff --git a/plugins/win-capture/window-helpers.c b/plugins/win-capture/window-helpers.c index 0e152db21..ebd3ce2db 100644 --- a/plugins/win-capture/window-helpers.c +++ b/plugins/win-capture/window-helpers.c @@ -29,10 +29,11 @@ extern void build_window_strings(const char *str, { char **strlist; + *class = NULL; + *title = NULL; + *exe = NULL; + if (!str) { - *class = NULL; - *title = NULL; - *exe = NULL; return; }