From 828a21a4141af749878b3af63047f143489e4758 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 18 Oct 2006 18:46:17 +0000 Subject: - return if xine_xmalloc failed CVS patchset: 8345 CVS date: 2006/10/18 18:46:17 --- src/xine-engine/scratch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/xine-engine/scratch.c b/src/xine-engine/scratch.c index aad2693b9..eac5eee63 100644 --- a/src/xine-engine/scratch.c +++ b/src/xine-engine/scratch.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: scratch.c,v 1.21 2006/10/16 22:18:24 valtri Exp $ + * $Id: scratch.c,v 1.22 2006/10/18 18:46:17 hadess Exp $ * * top-level xine functions * @@ -52,6 +52,8 @@ static void __attribute__((__format__(__printf__, 2, 0))) if ( ! this->lines[this->cur] ) this->lines[this->cur] = xine_xmalloc(SCRATCH_LINE_LEN_MAX+1); + if ( ! this->lines[this->cur] ) + return; strftime (this->lines[this->cur], SCRATCH_LINE_LEN_MAX, "%X: ", &tm); l = strlen (this->lines[this->cur]); -- cgit v1.2.3