diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-04-14 14:00:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-14 14:57:17 (GMT) |
commit | e64fa5f1b611353522ec014192046ab3bf67e69f (patch) | |
tree | ee490543c83bc3dea5144ab8971caa661f5b633c /Source/cmCPluginAPI.cxx | |
parent | fc223f986066496654b4f2e392a40264c95cbd68 (diff) | |
download | CMake-e64fa5f1b611353522ec014192046ab3bf67e69f.zip CMake-e64fa5f1b611353522ec014192046ab3bf67e69f.tar.gz CMake-e64fa5f1b611353522ec014192046ab3bf67e69f.tar.bz2 |
cmSourceFile::GetProperty: return cmProp
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 874efa5..697d435 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -580,7 +580,8 @@ const char* CCONV cmSourceFileGetProperty(void* arg, const char* prop) { cmCPluginAPISourceFile* sf = static_cast<cmCPluginAPISourceFile*>(arg); if (cmSourceFile* rsf = sf->RealSourceFile) { - return rsf->GetProperty(prop); + cmProp p = rsf->GetProperty(prop); + return p ? p->c_str() : nullptr; } if (!strcmp(prop, "LOCATION")) { return sf->FullPath.c_str(); |