[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-cvslog
Subject:    [xine-cvs] =?utf-8?b?SEc6IHhpbmUtbGliLTEuMjogeGluZV9uZXcoKTogcmV0?= =?utf-8?q?urn_error_instead_of_a
From:       Petri_Hintukainen via Xine-cvslog <xine-cvslog () lists ! sourceforge ! net
Date:       2017-09-27 7:14:33
Message-ID: 1bddabf7d247a04182e5.1506495507 () hg ! debian ! org
[Download RAW message or body]

# HG changeset patch
# User Petri Hintukainen <phintuka@users.sourceforge.net>
# Date 1506495507 -10800
# Node ID 1bddabf7d247a04182e54b2d581e896012b08472
# Branch  default
# Parent  b4ffef5c401de855176033b7718a200e4887b92e
xine_new(): return error instead of abort()

diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
--- a/src/xine-engine/xine.c
+++ b/src/xine-engine/xine.c
@@ -1748,9 +1748,9 @@
     int i_err;
 #endif
 
-    this = calloc(1, sizeof (xine_t));
+  this = calloc(1, sizeof (xine_t));
   if (!this)
-    _x_abort();
+    return NULL;
 
   this->plugin_catalog = NULL;
   this->save_path      = NULL;

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic