Changeset 2c48db8


Ignore:
Timestamp:
Dec 3, 2009, 10:17:03 AM (10 years ago)
Author:
Karl Ramm <kcr@1ts.org>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
129e609
Parents:
e8074ed
git-author:
Karl Ramm <kcr@1ts.org> (12/03/09 09:55:06)
git-committer:
Karl Ramm <kcr@1ts.org> (12/03/09 10:17:03)
Message:
don't open the file before owl_file_deleteline

owl_file_deleteline now does backup-by-rename, so otherwise we end up
appending to the "backup" file.

Reviewed-by: Nelson Elhage <nelhage@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rf63a681 r2c48db8  
    32733273
    32743274  filename=owl_global_get_startupfile(&g);
     3275
     3276  /* delete earlier copies */
     3277  owl_util_file_deleteline(filename, buff, 1);
     3278
    32753279  file=fopen(filename, "a");
    32763280  if (!file) {
     
    32783282    return;
    32793283  }
    3280 
    3281   /* delete earlier copies */
    3282   owl_util_file_deleteline(filename, buff, 1);
    32833284
    32843285  /* add this line */
Note: See TracChangeset for help on using the changeset viewer.