File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
diff -u libmagic.orig/apprentice.c libmagic/apprentice.c
2
2
--- libmagic.orig/apprentice.c 2018-03-11 01:46:42.000000000 +0100
3
- +++ libmagic/apprentice.c 2019-04-12 10:04:15.721646341 +0200
3
+ +++ libmagic/apprentice.c 2019-04-15 10:57:47.115181746 +0200
4
4
@@ -2,7 +2,7 @@
5
5
* Copyright (c) Ian F. Darwin 1986-1995.
6
6
* Software written by Ian F. Darwin and others;
@@ -945,7 +945,7 @@ diff -u libmagic.orig/apprentice.c libmagic/apprentice.c
945
945
- int fd;
946
946
- struct stat st;
947
947
+ uint32_t *ptr;
948
- + uint32_t version, entries, nentries;
948
+ + uint32_t version, entries = 0 , nentries;
949
949
+ int needsbyteswap;
950
950
char *dbname = NULL;
951
951
struct magic_map *map;
Original file line number Diff line number Diff line change @@ -2954,7 +2954,7 @@ private struct magic_map *
2954
2954
apprentice_map (struct magic_set * ms , const char * fn )
2955
2955
{
2956
2956
uint32_t * ptr ;
2957
- uint32_t version , entries , nentries ;
2957
+ uint32_t version , entries = 0 , nentries ;
2958
2958
int needsbyteswap ;
2959
2959
char * dbname = NULL ;
2960
2960
struct magic_map * map ;
You can’t perform that action at this time.
0 commit comments