]> granicus.if.org Git - graphviz/commitdiff
more [-Wparentheses]
authorJohn Ellson <ellson@research.att.com>
Tue, 29 Oct 2019 17:13:20 +0000 (13:13 -0400)
committerJohn Ellson <ellson@research.att.com>
Tue, 29 Oct 2019 17:13:20 +0000 (13:13 -0400)
lib/gvc/gvdevice.c

index 968c6748332a127526c54e59bcada717091fa31a..bc5e5fd06d683063d6b14161270beb32538c4818 100644 (file)
@@ -263,7 +263,8 @@ int gvferror (FILE* stream)
 
 size_t gvfwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream)
 {
-    assert(size = sizeof(char));
+    size = sizeof(char);
+    assert(size);
     return gvwrite((GVJ_t*)stream, ptr, nmemb);
 }