mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Add an assert in wcharz_t's constructor that it is not null
These strings should never be null.
This commit is contained in:
parent
8427e05bf7
commit
497073f74e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
|||
struct wcharz_t {
|
||||
const wchar_t *str;
|
||||
|
||||
/* implicit */ wcharz_t(const wchar_t *s) : str(s) {}
|
||||
/* implicit */ wcharz_t(const wchar_t *s) : str(s) { assert(s && "wcharz_t must be non-null"); }
|
||||
operator const wchar_t *() const { return str; }
|
||||
operator wcstring() const { return str; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue