Changeset 778


Ignore:
Timestamp:
Aug 11, 2010, 11:34:17 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: QCups: Don't try to unlink() a NULL path as it may crash some libc implementations [vendor bug].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/painting/qcups.cpp

    r769 r778  
    378378        return false;
    379379    const char *ppdFile = _cupsGetPPD(printerName);
    380     unlink(ppdFile);
     380    if (ppdFile != 0)
     381        unlink(ppdFile);
    381382    return (ppdFile != 0);
    382383}
Note: See TracChangeset for help on using the changeset viewer.