1. Anteru
  2. rply-io

Commits

Anteru  committed 4c41839

Only close I/O if a callback has been provided.

  • Participants
  • Parent commits a0fe448
  • Branches default

Comments (0)

Files changed (1)

File rply.c

View file
  • Ignore whitespace
         ply_ferror(ply, "Error closing up");
         return 0;
     }
-	if (ply->io.close) ply->io.close (ply->io.context);
+    if (ply->io.close) ply->io.close (ply->io.context);
     /* free all memory used by handle */
     if (ply->element) {
         for (i = 0; i < ply->nelements; i++) {