summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorJohan Redestig <johan.redestig@sonymobile.com>2015-10-09 10:37:37 +0200
committerJohan Redestig <johan.redestig@sonymobile.com>2015-10-09 10:38:39 +0200
commit4ef1adc04901275076ada442ab8078aea554595e (patch)
treeef686ed2e75bcf0f64747546db7133b17db0ced6 /slideshow
parentb1f20fa48b65b2f03f9303ffa2aa381cd1d3dd6f (diff)
downloadextras-4ef1adc04901275076ada442ab8078aea554595e.tar.gz
slideshow: Dont crash when -t is used
Change-Id: I68764b86ad05afb3853ed753a28b4a53580cb68c
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/slideshow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/slideshow.cpp b/slideshow/slideshow.cpp
index 318d8053..bc2dcb07 100644
--- a/slideshow/slideshow.cpp
+++ b/slideshow/slideshow.cpp
@@ -87,7 +87,7 @@ int main(int argc, char **argv)
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);