~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to source/blender/blenloader/intern/runtime.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        int datastart;
73
73
        char buf[8];
74
74
 
75
 
        if (fd == -1)
 
75
        if (fd < 0)
76
76
                goto cleanup;
77
77
        
78
78
        lseek(fd, -12, SEEK_END);
104
104
 
105
105
        fd = BLI_open(path, O_BINARY | O_RDONLY, 0);
106
106
 
107
 
        if (fd == -1) {
 
107
        if (fd < 0) {
108
108
                BKE_reportf(reports, RPT_ERROR, "Unable to open '%s': %s", path, strerror(errno));
109
109
                goto cleanup;
110
110
        }