remove disabled realloc debug code from libxattr

Sat, 20 Apr 2024 12:50:38 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 20 Apr 2024 12:50:38 +0200
changeset 814
0ce45bdc48bc
parent 813
06cf17795b86
child 815
1f40ca07ae1b

remove disabled realloc debug code from libxattr

dav/libxattr.c file | annotate | diff | comparison | revisions
--- a/dav/libxattr.c	Sat Apr 20 12:43:44 2024 +0200
+++ b/dav/libxattr.c	Sat Apr 20 12:50:38 2024 +0200
@@ -43,7 +43,7 @@
     size_t array_len = *len;
     if(array_pos >= array_len) {
         size_t newlen = array_len * 2;
-        char **new_array = NULL; //realloc(array, newlen * sizeof(char*));
+        char **new_array = realloc(array, newlen * sizeof(char*));
         if(!new_array) {
             return 1;
         }

mercurial