summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2006-10-18 18:46:17 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2006-10-18 18:46:17 +0000
commit828a21a4141af749878b3af63047f143489e4758 (patch)
treec36685f182e93f19c86b50e49c5131091c21f3f1
parentfd821f5c182e0c6f2da2f299b7d1341affd0914f (diff)
downloadxine-lib-828a21a4141af749878b3af63047f143489e4758.tar.gz
xine-lib-828a21a4141af749878b3af63047f143489e4758.tar.bz2
- return if xine_xmalloc failed
CVS patchset: 8345 CVS date: 2006/10/18 18:46:17
-rw-r--r--src/xine-engine/scratch.c4
1 files changed, 3 insertions, 1 deletions
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]);