~ubuntu-branches/ubuntu/wily/libwpd/wily

« back to all changes in this revision

Viewing changes to src/lib/WPXStreamImplementation.cpp

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2013-08-20 22:00:26 UTC
  • mfrom: (1.5.5)
  • Revision ID: package-import@ubuntu.com-20130820220026-9p9khyr1llcfkypl
Tags: 0.9.9-1
* New upstream release

* bump dh compat to 9, use /usr/share/dpkg/{architecture,buildflags}.mk 

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        }
117
117
 
118
118
        struct stat status;
119
 
        stat( filename, &status );
120
 
        if ( !S_ISREG(status.st_mode) )
 
119
        const int retval = stat( filename, &status );
 
120
        if ( (0 != retval) || !S_ISREG(status.st_mode) )
121
121
        {
122
122
                delete d;
123
123
                d = 0;