summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@maxwell.research.nokia.com>2010-08-01 14:08:04 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-08-06 15:15:50 +0200
commit5916c4de4d03290cd313f2bab9720ad9cd023992 (patch)
treeec35c53f286041bb0f877ae836e56d5212b23a74
parentb7cb1af4980e4ec2da117c0bf29d83eaec5c58f3 (diff)
Optimise for safer free() usage.
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
-rw-r--r--yavta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yavta.c b/yavta.c
index 123f42f..6029e8a 100644
--- a/yavta.c
+++ b/yavta.c
@@ -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;