| commit | d0419019de2a15a87d390fb0eed929acf9029d75 | [log] [tgz] |
|---|---|---|
| author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Apr 24 19:37:52 2013 +0000 |
| committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Apr 24 19:37:52 2013 +0000 |
| tree | 2f8b9bd767f60d9eba603944e647584bdf5cb494 | |
| parent | 5d71adf4b187b41858139675a499a704af15b2cb [diff] [blame] |
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 @@ 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) {