[Gpredict-svn] SF.net SVN: gpredict:[838] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <aa...@us...> - 2011-07-02 15:51:50
|
Revision: 838
http://gpredict.svn.sourceforge.net/gpredict/?rev=838&view=rev
Author: aa1vs
Date: 2011-07-02 15:51:44 +0000 (Sat, 02 Jul 2011)
Log Message:
-----------
Add check on satellite map object allocation.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/gtk-sat-map.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-06-30 01:45:58 UTC (rev 837)
+++ trunk/ChangeLog 2011-07-02 15:51:44 UTC (rev 838)
@@ -1,5 +1,11 @@
2011-06-29 Charles Suprin <hamaa1vs at gmail.com>
+ * src/gtk-sat-map.c
+ Add check on satellite map object allocation.
+
+
+2011-06-29 Charles Suprin <hamaa1vs at gmail.com>
+
* src/tle-update.c
Fix SEGFAULT in tle-update.c when unable to open file for writing in network updates.
Modified: trunk/src/gtk-sat-map.c
===================================================================
--- trunk/src/gtk-sat-map.c 2011-06-30 01:45:58 UTC (rev 837)
+++ trunk/src/gtk-sat-map.c 2011-07-02 15:51:44 UTC (rev 838)
@@ -1775,6 +1775,13 @@
/* create and initialize a sat object */
obj = g_try_new (sat_map_obj_t, 1);
+ if ( obj == NULL ) {
+ sat_log_log (SAT_LOG_LEVEL_ERROR,
+ _("%s: Cannot allocate memory for satellite %d."),
+ __FUNCTION__, sat->tle.catnr);
+ return;
+ }
+
obj->selected = FALSE;
obj->showtrack = FALSE;
obj->showcov = TRUE;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|