Skip to content

Commit 5107000

Browse files
j-riveroscpeters
authored andcommitted
Fix bug returning nullptr in a string return type
Signed-off-by: Jose Luis Rivero <[email protected]> (cherry picked from commit 53c9369)
1 parent e6dcbc8 commit 5107000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/Gui.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ std::string defaultGuiConfigFile(bool _isPlayback,
206206
{
207207
gzerr << "Failed to create the default config folder ["
208208
<< defaultConfigFolder << "]\n";
209-
return nullptr;
209+
return "";
210210
}
211211
}
212212

@@ -217,7 +217,7 @@ std::string defaultGuiConfigFile(bool _isPlayback,
217217
gzerr << "Failed to copy installed config [" << installedConfig
218218
<< "] to default config [" << defaultConfig << "]."
219219
<< std::endl;
220-
return nullptr;
220+
return "";
221221
}
222222
else
223223
{

0 commit comments

Comments
 (0)