wmitime: Allow -display option with no argument
commit7bc4cffcc7f8e921a48cb3250ebcfc9b02d0f906
authorDoug Torrance <dtorrance@monmouthcollege.edu>
Sat, 20 Dec 2014 07:57:02 +0000 (20 01:57 -0600)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 20 Dec 2014 09:55:06 +0000 (20 09:55 +0000)
tree2f5c8f38ec45d16f70b25db4a0e141f1bb630312
parentcd2840a93c6fcd0b69a5c430820e587f16ef7646
wmitime: Allow -display option with no argument

Previously, if a user ran wmitime with the -display option and no argument,
a segmentation fault would occur. Print a warning instead.

Patch from Debian [1] to fix bug #716466 [2].

[1] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/patches/allow_display_with_no_args.patch/
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716466
wmitime/wmgeneral/wmgeneral.c