Changeset 8e670dd in mainline


Ignore:
Timestamp:
2016-02-18T09:33:54Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e11c527
Parents:
3a9cf35
Message:

viewer: Fix condition testing the result of open()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/viewer/viewer.c

    r3a9cf35 r8e670dd  
    9898{
    9999        int fd = open(fname, O_RDONLY);
    100         if (fd != 0)
     100        if (fd < 0)
    101101                return false;
    102102       
Note: See TracChangeset for help on using the changeset viewer.