[gimp] Eliminated a compiler warning.



commit 5809ddcd32956569c9c7e35bad5a3fb7fb81d5be
Author: Kevin Cozens <kcozens cvs gnome org>
Date:   Tue Aug 18 00:50:56 2009 -0400

    Eliminated a compiler warning.

 plug-ins/script-fu/tinyscheme/scheme.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/script-fu/tinyscheme/scheme.c b/plug-ins/script-fu/tinyscheme/scheme.c
index 38eab08..a41c205 100644
--- a/plug-ins/script-fu/tinyscheme/scheme.c
+++ b/plug-ins/script-fu/tinyscheme/scheme.c
@@ -4021,7 +4021,8 @@ static pointer opexe_4(scheme *sc, enum scheme_opcodes op) {
                char *str;
 
                size=p->rep.string.curr-p->rep.string.start+1;
-               if(str=sc->malloc(size)) {
+               str=sc->malloc(size);
+               if(str != NULL) {
                     pointer s;
 
                     memcpy(str,p->rep.string.start,size-1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]