talkfilters 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/talkfilters/talkfilters.c +4 -0
  2. metadata +3 -3
@@ -28,6 +28,10 @@ VALUE tf_translate(VALUE dummy, VALUE type, VALUE string) {
28
28
  gtf_filter_t *filter;
29
29
  size_t bufsize;
30
30
 
31
+ if (NIL_P(string)) {
32
+ return rb_string_new2("");
33
+ }
34
+
31
35
  bufsize = RSTRING(string)->len + 2;
32
36
 
33
37
  buf = (char *) malloc(bufsize);
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
2
+ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: talkfilters
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.3
7
- date: 2007-05-20 00:00:00 -07:00
6
+ version: 0.0.4
7
+ date: 2007-07-08 00:00:00 -07:00
8
8
  summary: Ruby interface to GNU Talkfilters
9
9
  require_paths:
10
10
  - lib