|
From: <sm...@us...> - 2009-12-16 19:54:22
|
Revision: 10722
http://plplot.svn.sourceforge.net/plplot/?rev=10722&view=rev
Author: smekal
Date: 2009-12-16 19:54:02 +0000 (Wed, 16 Dec 2009)
Log Message:
-----------
The file handle fp_drvdb is only available if ENABLE_DYNDRIVERS is defined. So two more lines need to be #ifdef-ed out.
Modified Paths:
--------------
trunk/src/plcore.c
Modified: trunk/src/plcore.c
===================================================================
--- trunk/src/plcore.c 2009-12-16 00:44:29 UTC (rev 10721)
+++ trunk/src/plcore.c 2009-12-16 19:54:02 UTC (rev 10722)
@@ -2805,7 +2805,9 @@
if (( dispatch_table = (PLDispatchTable **)
malloc(( nplstaticdevices + npldynamicdevices ) * sizeof ( PLDispatchTable * ))) == NULL )
{
+#ifdef ENABLE_DYNDRIVERS
fclose( fp_drvdb );
+#endif
plexit( "plInitDispatchTable: Insufficient memory" );
}
@@ -2818,7 +2820,9 @@
{
if (( dispatch_table[n] = (PLDispatchTable *) malloc( sizeof ( PLDispatchTable ))) == NULL )
{
+#ifdef ENABLE_DYNDRIVERS
fclose( fp_drvdb );
+#endif
plexit( "plInitDispatchTable: Insufficient memory" );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|