Changeset 5c90e3e in mainline for uspace/srv/logger/logs.c


Ignore:
Timestamp:
2012-10-18T22:38:27Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
508fff8
Parents:
b801f2d (diff), 7d248e3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/logs.c

    rb801f2d r5c90e3e  
    268268
    269269        if (log->parent == NULL) {
    270                 fclose(log->dest->logfile);
     270                /*
     271                 * Due to lazy file opening in write_to_log(),
     272                 * it is possible that no file was actually opened.
     273                 */
     274                if (log->dest->logfile != NULL) {
     275                        fclose(log->dest->logfile);
     276                }
    271277                free(log->dest->filename);
    272278                free(log->dest);
Note: See TracChangeset for help on using the changeset viewer.