Diff for /embedaddon/lighttpd/src/data_count.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2013/10/14 10:32:48 version 1.1.1.2, 2016/11/02 10:35:00
Line 1 Line 1
   #include "first.h"
   
 #include "array.h"  #include "array.h"
   
 #include <string.h>  #include <string.h>
Line 8  static data_unset *data_count_copy(const data_unset *s Line 10  static data_unset *data_count_copy(const data_unset *s
         data_count *src = (data_count *)s;          data_count *src = (data_count *)s;
         data_count *ds = data_count_init();          data_count *ds = data_count_init();
   
        buffer_copy_string_buffer(ds->key, src->key);        buffer_copy_buffer(ds->key, src->key);
         ds->count = src->count;          ds->count = src->count;
         ds->is_index_key = src->is_index_key;          ds->is_index_key = src->is_index_key;
         return (data_unset *)ds;          return (data_unset *)ds;
Line 53  data_count *data_count_init(void) { Line 55  data_count *data_count_init(void) {
         data_count *ds;          data_count *ds;
   
         ds = calloc(1, sizeof(*ds));          ds = calloc(1, sizeof(*ds));
           force_assert(NULL != ds);
   
         ds->key = buffer_init();          ds->key = buffer_init();
         ds->count = 1;          ds->count = 1;

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>