Revision: 2190
          http://synfig.svn.sourceforge.net/synfig/?rev=2190&view=rev
Author:   genete
Date:     2008-11-12 19:01:34 +0000 (Wed, 12 Nov 2008)

Log Message:
-----------
Stop a bunch of compile warnings about not used returned value from vasprintf 
function in _string.h file.

Modified Paths:
--------------
    ETL/trunk/ETL/_stringf.h

Modified: ETL/trunk/ETL/_stringf.h
===================================================================
--- ETL/trunk/ETL/_stringf.h    2008-11-11 19:51:53 UTC (rev 2189)
+++ ETL/trunk/ETL/_stringf.h    2008-11-12 19:01:34 UTC (rev 2190)
@@ -91,9 +91,12 @@
 #ifdef HAVE_VASPRINTF  // This is the preferred method (and safest)
        char *buffer;
        std::string ret;
-       vasprintf(&buffer,format,args);
-       ret=buffer;
-       free(buffer);
+       int i=vasprintf(&buffer,format,args);
+       if (i>-1) 
+       {
+               ret=buffer;
+               free(buffer);
+       }
        return ret;
 #else
 #ifdef HAVE_VSNPRINTF  // This is the secondary method (Safe, but bulky)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to