berns 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6695ba5e81eb15efa63f6a0fe44f6b9a7815e72e2f559ea95215705e9071cb7
4
- data.tar.gz: 58abfcecba13d9629cac48c1b16a5aa76fbffc887e1d84f0d5d4374a9ab8cea0
3
+ metadata.gz: f3f1a44554212d5fc783feab767f7926e7d55d0d12ad23ad876748a547a128c5
4
+ data.tar.gz: 93f10d934d9f140d1604dbebbdd380f34997f0531abb5c1f8fe41249a22152df
5
5
  SHA512:
6
- metadata.gz: 8011681974ffdbc3ca50097da9cb78cd4eb323957fd60c16d6531c36a5fb88fce1364092351f1f9498d11480645a23e968403a69a34ac80d60b0c044b34dea8c
7
- data.tar.gz: 7076f10933b3b90efc0967b845448863adf3dc46780eecf655e917fc2face9eab42e2e779648db818589368296268dc7c06cd049677077f1d049e5132104f97f
6
+ metadata.gz: 459194492b7223b9e27a39f07009644f4b06a1b64cbcfdfc50b40b71ad51fbf2196f97bf1cb0f1212ded8a042b925b45dbfe2d98f61cc1fd0107ac0a432406c8
7
+ data.tar.gz: 28dd92ab04e1fa8af37b5b90cc071b1b7f1093b2275fe6e356fe48205d25ae2cbc2fd61e67555aabf60f275d6fdbd14614fc34cf5158aee73e1384c126cf1e45
data/ext/berns/berns.c CHANGED
@@ -170,13 +170,13 @@ static char * string_value_to_attribute(const char *attr, const size_t attrlen,
170
170
 
171
171
  static char * hash_value_to_attribute(char *attr, const size_t attrlen, VALUE *value) {
172
172
  if (TYPE(*value) == T_IMEMO) {
173
- return calloc(0, 1);
173
+ return strdup("");
174
174
  }
175
175
 
176
176
  Check_Type(*value, T_HASH);
177
177
 
178
178
  if (rb_hash_size(*value) == 1) {
179
- return calloc(0, 1);
179
+ return strdup("");
180
180
  }
181
181
 
182
182
  VALUE subkey;
@@ -240,7 +240,7 @@ static char * hash_value_to_attribute(char *attr, const size_t attrlen, VALUE *v
240
240
 
241
241
  switch(TYPE(subvalue)) {
242
242
  case T_FALSE:
243
- combined = calloc(0, 1);
243
+ combined = strdup("");
244
244
  break;
245
245
 
246
246
  case T_TRUE:
@@ -333,7 +333,7 @@ static char * to_attribute(VALUE attr, VALUE *value) {
333
333
  val = empty_value_to_attribute(RSTRING_PTR(attr), RSTRING_LEN(attr));
334
334
  break;
335
335
  case T_FALSE:
336
- val = calloc(0, 1);
336
+ val = strdup("");
337
337
  break;
338
338
  case T_HASH:
339
339
  val = hash_value_to_attribute(RSTRING_PTR(attr), RSTRING_LEN(attr), value);
data/lib/berns/berns.so CHANGED
Binary file
data/lib/berns/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Berns
3
- VERSION = '3.1.2'
3
+ VERSION = '3.1.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berns
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Beck