diff options
author | Rob Bradford <rob@linux.intel.com> | 2012-12-05 18:47:03 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-12-06 22:30:49 -0500 |
commit | 4988703086b491f3d3d9cfd8d1643b8fb1222ec1 (patch) | |
tree | 33a205170a820bf209643a09ae41e2880cad91ea /src/screenshooter.c | |
parent | 3050d8fa94782202edb10c84e73ebad6dad9ac1f (diff) | |
download | weston-4988703086b491f3d3d9cfd8d1643b8fb1222ec1.tar.gz |
screenshooter: Abandon recording rather than use unitialised format
Abandon the recording if the format is not known - this prevents the use of an
unitialised member is the header struct.
Diffstat (limited to 'src/screenshooter.c')
-rw-r--r-- | src/screenshooter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshooter.c b/src/screenshooter.c index 422c2a9a..24999f3a 100644 --- a/src/screenshooter.c +++ b/src/screenshooter.c @@ -418,7 +418,7 @@ weston_recorder_create(struct weston_output *output, const char *filename) break; default: weston_log("unknown recorder format\n"); - break; + return; } header.width = output->current->width; |