]> git.mdlowis.com Git - projs/tide.git/commitdiff
removed erroneous assert in gapbuf_save
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 30 Oct 2019 13:31:34 +0000 (09:31 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 30 Oct 2019 13:31:34 +0000 (09:31 -0400)
src/lib/gapbuf.c

index c188242d63627e137f20f4ceef6ff1eee049f96f..95ac264a39aacd961086278af53c3407770e2b13 100644 (file)
@@ -104,7 +104,6 @@ static long writefd(int fd, char* data, long towrite)
 long gapbuf_save(GapBuf* buf, char* path)
 {
     require(buf != NULL);
-    require(path != NULL);
     long fd;
     long nwrite = 0;
     if (path && (fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0644)) >= 0)