string-util: rename strdash_if_empty() to empty_to_dash()

This commit is contained in:
Yu Watanabe
2018-05-11 01:55:46 +09:00
parent 945403e6ed
commit c5984fe177
3 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ static inline const char *empty_to_null(const char *p) {
return isempty(p) ? NULL : p;
}
static inline const char *strdash_if_empty(const char *str) {
static inline const char *empty_to_dash(const char *str) {
return isempty(str) ? "-" : str;
}