commit | 4ef1adc04901275076ada442ab8078aea554595e | [log] [tgz] |
---|---|---|
author | Johan Redestig <johan.redestig@sonymobile.com> | Fri Oct 09 10:37:37 2015 +0200 |
committer | Johan Redestig <johan.redestig@sonymobile.com> | Fri Oct 09 10:38:39 2015 +0200 |
tree | ef686ed2e75bcf0f64747546db7133b17db0ced6 | |
parent | b1f20fa48b65b2f03f9303ffa2aa381cd1d3dd6f [diff] [blame] |
slideshow: Dont crash when -t is used Change-Id: I68764b86ad05afb3853ed753a28b4a53580cb68c
diff --git a/slideshow/slideshow.cpp b/slideshow/slideshow.cpp index 318d805..bc2dcb0 100644 --- a/slideshow/slideshow.cpp +++ b/slideshow/slideshow.cpp
@@ -87,7 +87,7 @@ long int timeout = NEXT_TIMEOUT_MS; time_t start; - while ((opt = getopt(argc, argv, "t")) != -1) { + while ((opt = getopt(argc, argv, "t:")) != -1) { switch (opt) { case 't': timeout = strtol(optarg, NULL, 0);