From: scroggo@google.com Date: Wed, 24 Apr 2013 19:37:52 +0000 (+0000) Subject: Fix the build. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~12613 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0419019de2a15a87d390fb0eed929acf9029d75;p=platform%2Fupstream%2FlibSkiaSharp.git Fix the build. Allow NULL for defaultValue in SkCommandLineFlags. unreviewed. Review URL: https://codereview.chromium.org/14472017 git-svn-id: http://skia.googlecode.com/svn/trunk@8847 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/tools/flags/SkCommandLineFlags.cpp b/tools/flags/SkCommandLineFlags.cpp index 7420d26..ed8db8e 100644 --- a/tools/flags/SkCommandLineFlags.cpp +++ b/tools/flags/SkCommandLineFlags.cpp @@ -22,6 +22,9 @@ bool SkFlagInfo::CreateStringFlag(const char* name, const char* shortName, void SkFlagInfo::SetDefaultStrings(SkCommandLineFlags::StringArray* pStrings, const char* defaultValue) { pStrings->reset(); + if (NULL == defaultValue) { + return; + } // If default is "", leave the array empty. size_t defaultLength = strlen(defaultValue); if (defaultLength > 0) {