From dbcc6fea14005d1d06324f8845430a241be9c2f9 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 11 Oct 2016 08:44:24 +0200 Subject: clear read_cofnig after reading --- examples/sample-photobooth.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/sample-photobooth.c b/examples/sample-photobooth.c index 2e3c00ae1..3183a8326 100644 --- a/examples/sample-photobooth.c +++ b/examples/sample-photobooth.c @@ -115,6 +115,8 @@ main(int argc, char **argv) { FILE *config; char buf[512]; + read_config = 0; + config = fopen (CONFIG_FILE, "r"); while (fgets (buf, sizeof(buf), config)) { char *s; -- cgit v1.2.1