Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git] / lib / sh / zmapfd.c
index 4000c4a..e720892 100644 (file)
@@ -66,11 +66,10 @@ zmapfd (fd, ostr, fn)
        }
       else if (nr < 0)
        {
-         rval = -1;
          free (result);
          if (ostr)
            *ostr = (char *)NULL;
-         break;
+         return -1;
        }
 
       RESIZE_MALLOCED_BUFFER (result, rind, nr, rsize, 128);