diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-03-19 17:20:15 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-03-19 17:20:15 -0300 |
commit | 27e3214b494b0cec3bdb5de927d18bc04323f6fb (patch) | |
tree | e8bb057569592ba9675e0119dbc1c707f56fc8d8 /mysys/my_new.cc | |
parent | e8c13e6a5482947d4d41a60826460dd76bcce975 (diff) | |
download | mariadb-git-27e3214b494b0cec3bdb5de927d18bc04323f6fb.tar.gz |
Bug#43461: invalid comparison with string literal in default.c
Don't compare string literals as it results in unspecified behavior.
mysys/default.c:
Test for a empty string.
Diffstat (limited to 'mysys/my_new.cc')
-rw-r--r-- | mysys/my_new.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mysys/my_new.cc b/mysys/my_new.cc index babfe04d695..7da54ffac87 100644 --- a/mysys/my_new.cc +++ b/mysys/my_new.cc @@ -46,8 +46,9 @@ void operator delete[] (void *ptr) throw () C_MODE_START -int __cxa_pure_virtual() { - assert("Pure virtual method called." == "Aborted"); +int __cxa_pure_virtual() +{ + assert(! "Aborted: pure virtual method called."); return 0; } |