diff options
author | Sakari Ailus <sakari.ailus@maxwell.research.nokia.com> | 2010-08-01 14:08:04 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-08-06 15:15:50 +0200 |
commit | 5916c4de4d03290cd313f2bab9720ad9cd023992 (patch) | |
tree | ec35c53f286041bb0f877ae836e56d5212b23a74 | |
parent | b7cb1af4980e4ec2da117c0bf29d83eaec5c58f3 (diff) |
Optimise for safer free() usage.
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
-rw-r--r-- | yavta.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -735,7 +735,7 @@ static int video_prepare_capture(struct device *dev, int nbufs, unsigned int off static int video_do_capture(struct device *dev, unsigned int nframes, unsigned int skip, unsigned int delay, const char *filename_prefix) { - char *filename; + char *filename = NULL; struct timeval start, end, ts; struct v4l2_buffer buf; unsigned int size; |