Skip to content

Commit

Permalink
DBEntry::info() default value
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jun 14, 2023
1 parent 8ea613c commit bd3eaf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ioc/dbentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class DBEntry {
return &ent;
}

const char* info(const char *key) {
const char *ret = nullptr;
const char* info(const char *key, const char* defval=nullptr) {
const char *ret = defval;
if(!dbFindInfo(&ent, key)) {
ret = ent.pinfonode->string;
}
Expand Down

0 comments on commit bd3eaf7

Please sign in to comment.