xrandr: do not segfault when "--scale" or "--transform" have no output
authorÉric Piel <eric.piel@tremplin-utc.net>
Mon, 26 Oct 2009 13:11:02 +0000 (14:11 +0100)
committerMatthias Hopf <mhopf@suse.de>
Tue, 10 Nov 2009 08:58:41 +0000 (09:58 +0100)
commitb84560759141ed52b8779c184184f888e9be8b2f
tree746c97d861221a3cbfde16f4a5e88845425fad4f
parent34829957441a10f6b6e31141aa1018f7a72aeaf9
xrandr: do not segfault when "--scale" or "--transform" have no output

"xrandr --scale 2x2" segfaults, because the --scale (and --transform)
options do not check for an existing output.

Make sure there is an output specified (like every other options).

Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Matthias Hopf <mhopf@suse.de>
xrandr.c