Bug 784373 - Fixed typo: SEEK_START => SEEK_SET. r=froydnj
authorDavid Rajchenbach-Teller <dteller@mozilla.com>
Tue, 28 Aug 2012 13:23:47 -0400
changeset 105718 44cfdb8eba09def2914ce7e5c1486b5d09a94509
parent 105717 b22fb91ad7e207e91bfd63ecf18410d17ee356b3
child 105719 054229ba8fd6663cb192f7663dd374146f30bc45
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersfroydnj
bugs784373
milestone18.0a1
Bug 784373 - Fixed typo: SEEK_START => SEEK_SET. r=froydnj
toolkit/components/osfile/osfile_unix_front.jsm
--- a/toolkit/components/osfile/osfile_unix_front.jsm
+++ b/toolkit/components/osfile/osfile_unix_front.jsm
@@ -137,17 +137,17 @@
       * file.  If |OS.File.POS_CURRENT|, |pos| is relative to the
       * current position in the file. If |OS.File.POS_END|, |pos| is
       * relative to the end of the file.
       *
       * @return The new position in the file.
       */
      File.prototype.setPosition = function setPosition(pos, whence) {
        if (whence === undefined) {
-         whence = Const.SEEK_START;
+         whence = Const.SEEK_SET;
        }
        return throw_on_negative("setPosition",
          UnixFile.lseek(this.fd, pos, whence)
        );
      };
 
      /**
       * Fetch the information on the file.