diff options
author | Eric Wong <e@80x24.org> | 2014-10-03 01:26:38 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2014-10-03 02:02:19 +0000 |
commit | bc92b7d99d4d3a15ae467246bbf45aefe2db0c89 (patch) | |
tree | b09c01d24940e62ae0383ef8a0910dbbc7157578 /ext/tdb/tdb.c | |
parent | 3b3e4c74fe0e05cd681c332ca4498cf3505662ce (diff) | |
download | ruby-tdb-bc92b7d99d4d3a15ae467246bbf45aefe2db0c89.tar.gz |
In our case, it was actually harmless because tdb_errorstr only returns trusted data, but the warning is ugly.
Diffstat (limited to 'ext/tdb/tdb.c')
-rw-r--r-- | ext/tdb/tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tdb/tdb.c b/ext/tdb/tdb.c index c108c38..2818a34 100644 --- a/ext/tdb/tdb.c +++ b/ext/tdb/tdb.c @@ -71,7 +71,7 @@ static void my_raise(struct tdb_context *tdb) } if (NIL_P(exc)) rb_bug("no-existent exception: %s\n", str); - rb_raise(exc, str); + rb_raise(exc, "%s", str); } static void init_hashes(void) |