diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2016-10-11 08:44:24 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-10-11 08:44:24 +0200 |
commit | dbcc6fea14005d1d06324f8845430a241be9c2f9 (patch) | |
tree | 299146d85a27d5093b95f5c3754c912e38801a29 /examples/sample-photobooth.c | |
parent | d3881999469bf427d4543e2b7ca79289937df56a (diff) | |
download | libgphoto2-dbcc6fea14005d1d06324f8845430a241be9c2f9.tar.gz |
clear read_cofnig after reading
Diffstat (limited to 'examples/sample-photobooth.c')
-rw-r--r-- | examples/sample-photobooth.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |