]> granicus.if.org Git - graphviz/commitdiff
Fix incorrect error checking in fputs-like functions
authorerg <devnull@localhost>
Thu, 21 May 2009 17:44:45 +0000 (17:44 +0000)
committererg <devnull@localhost>
Thu, 21 May 2009 17:44:45 +0000 (17:44 +0000)
lib/cgraph/write.c

index 571553e66580b5f37953e536e8fe04ff3b194072..e7cd6642071b1f4ebdb3f1eea51d4a140961187f 100644 (file)
@@ -20,7 +20,7 @@
 
 #define EMPTY(s)               ((s == 0) || (s)[0] == '\0')
 #define MAX(a,b)     ((a)>(b)?(a):(b))
-#define CHKRV(v)     {if ((v)) return EOF;}
+#define CHKRV(v)     {if ((v) == EOF) return EOF;}
 
 typedef void iochan_t;