aboutsummaryrefslogtreecommitdiff
path: root/src/Conf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Conf.cpp')
-rw-r--r--src/Conf.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Conf.cpp b/src/Conf.cpp
index 883022b..4424551 100644
--- a/src/Conf.cpp
+++ b/src/Conf.cpp
@@ -570,12 +570,16 @@ namespace sibs
bool isProjectNameValid(const string &projectName)
{
+ if(projectName.empty())
+ return false;
+
for(int i = 0; i < projectName.size(); ++i)
{
char c = projectName[i];
if(!isalpha(c) && !isdigit(c) && c != '-' && c != '_')
return false;
}
+
return true;
}