Skip to content

Commit

Permalink
Config.get(): return default value if no key found
Browse files Browse the repository at this point in the history
  • Loading branch information
shuLhan committed Jul 13, 2017
1 parent 92509f8 commit 10742ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Config.cc
Expand Up @@ -184,6 +184,7 @@ const char* Config::get(const char* head, const char* key, const char* dflt)
}
return NULL;
}
return dflt;
}

return dflt;
Expand Down

0 comments on commit 10742ef

Please sign in to comment.