summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-09-16 16:33:54 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-09-16 16:33:54 +0300
commitb6cd00f0eb731d209d74844ff480eb342d700ba8 (patch)
tree3229bcef714d1517e70d59373279955621770f34
parent080158c9c2eeb805eec9439cd01d0cb3e8c43d01 (diff)
modified: main.cppdict_gen
-rw-r--r--main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index a04b0db..1ce25be 100644
--- a/main.cpp
+++ b/main.cpp
@@ -40,6 +40,8 @@ int main(int argc, char **argv)
printf("error, length must be more than 0\n");
return 1;
}
+ if(min_len == 0)
+ min_len = 1;
if(min_len > max_len)
{
printf("error, max length must be greater or equal min_length\n");