Changeset 50235 in webkit


Ignore:
Timestamp:
Oct 28, 2009 2:05:31 PM (14 years ago)
Author:
kenneth@webkit.org
Message:

Rubberstamped by Oliver Hunt.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-10-28
Fix the warning:

"warning: ignoring return value of 'char* getcwd(char*, size_t)',
declared with attribute warn_unused_result".

by actually checking the result. In the case it is null, an
error has occoured, so treat it as the other fatal errors.

  • DumpRenderTree/qt/DumpRenderTree.cpp:

(WebCore::DumpRenderTree::initializeFonts):

Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r50233 r50235  
     12009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
     2
     3        Rubberstamped by Oliver Hunt.
     4
     5        Fix the warning:
     6
     7        "warning: ignoring return value of 'char* getcwd(char*, size_t)',
     8        declared with attribute warn_unused_result".
     9
     10        by actually checking the result. In the case it is null, an
     11        error has occoured, so treat it as the other fatal errors.
     12
     13        * DumpRenderTree/qt/DumpRenderTree.cpp:
     14        (WebCore::DumpRenderTree::initializeFonts):
     15
    1162009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
    217
  • trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTree.cpp

    r50166 r50235  
    597597    }
    598598    char currentPath[PATH_MAX+1];
    599     getcwd(currentPath, PATH_MAX);
     599    if (!getcwd(currentPath, PATH_MAX))
     600        qFatal("Couldn't get current working directory");
    600601    QByteArray configFile = currentPath;
    601602    FcConfig *config = FcConfigCreate();
Note: See TracChangeset for help on using the changeset viewer.