Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8e670dd in mainline


Ignore:
Timestamp:
2016-02-18T09:33:54Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
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.