… | |
… | |
51 | #include <uudeview.h> |
51 | #include <uudeview.h> |
52 | #include <uuint.h> |
52 | #include <uuint.h> |
53 | #include <fptools.h> |
53 | #include <fptools.h> |
54 | #include <uustring.h> |
54 | #include <uustring.h> |
55 | |
55 | |
56 | char * uucheck_id = "$Id: uucheck.c,v 1.20 2020/12/10 22:49:15 root Exp $"; |
56 | char * uucheck_id = "$Id: uucheck.c,v 1.21 2020/12/11 06:22:26 root Exp $"; |
57 | |
57 | |
58 | /* |
58 | /* |
59 | * Arbitrary number. This is the maximum number of part numbers we |
59 | * Arbitrary number. This is the maximum number of part numbers we |
60 | * store for our have-parts and missing-parts lists |
60 | * store for our have-parts and missing-parts lists |
61 | */ |
61 | */ |
… | |
… | |
1194 | if ((unew = (uulist *) malloc (sizeof (uulist))) == NULL) { |
1194 | if ((unew = (uulist *) malloc (sizeof (uulist))) == NULL) { |
1195 | return UURET_NOMEM; |
1195 | return UURET_NOMEM; |
1196 | } |
1196 | } |
1197 | |
1197 | |
1198 | { |
1198 | { |
1199 | static uulist uulist_new; |
1199 | const uulist uulist_new = { 0 }; |
1200 | *unew = uulist_new; /* zero-initialise the structure */ |
1200 | *unew = uulist_new; /* zero-initialise the structure */ |
1201 | } |
1201 | } |
1202 | |
1202 | |
1203 | if ((unew->subfname = _FP_strdup (data->subfname)) == NULL) { |
1203 | if ((unew->subfname = _FP_strdup (data->subfname)) == NULL) { |
1204 | _FP_free (unew); |
1204 | _FP_free (unew); |