1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | #include "extern.h" |
29 | |
30 | PUBLIC void |
31 | Remove_prq( tcp ) |
32 | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | |
41 | |
42 | |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | CELLPTR tcp; |
49 | { |
50 | static LINKPTR rlp = NIL(LINK)((LINK*)((void*)0)); |
51 | static int flag = 0; |
52 | static HASHPTR m_at, m_q, m_b, m_g, m_l, m_bb, m_up; |
53 | char *m_at_s, *m_g_s, *m_q_s, *m_b_s, *m_l_s, *m_bb_s, *m_up_s; |
54 | LINKPTR tlp; |
55 | |
56 | |
57 | tcp->ce_flag &= ~(F_MADE0x8000|F_VISITED0x0080); |
58 | tcp->ce_time = 0L; |
59 | |
60 | |
61 | |
62 | |
63 | |
64 | for( tlp=rlp; tlp !=NIL(LINK)((LINK*)((void*)0)); tlp=tlp->cl_next ) |
| 1 | Loop condition is false. Execution continues on line 70 | |
|
65 | |
66 | |
67 | if( (tlp->cl_prq->ce_flag & (F_VISITED0x0080|F_MADE0x8000)) != F_VISITED0x0080 ) |
68 | break; |
69 | |
70 | if( tlp == NIL(LINK)((LINK*)((void*)0)) ) { |
| |
71 | TALLOC(tlp, 1, LINK)if ((tlp = (LINK*) calloc((unsigned int)(1), (size_t)sizeof(LINK ))) == (LINK*)0) {No_ram();}; |
72 | TALLOC(tlp->cl_prq, 1, CELL)if ((tlp->cl_prq = (CELL*) calloc((unsigned int)(1), (size_t )sizeof(CELL))) == (CELL*)0) {No_ram();}; |
73 | tlp->cl_next = rlp; |
74 | rlp = tlp; |
75 | } |
76 | |
77 | *tlp->cl_prq = *tcp; |
| 3 | | Dereference of null pointer (loaded from field 'cl_prq') |
|
78 | |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | if( !flag ) { |
87 | |
88 | flag = 1; |
89 | m_at = Get_name("@", Macs, TRUE1); |
90 | m_g = Get_name(">", Macs, TRUE1); |
91 | m_q = Get_name("?", Macs, TRUE1); |
92 | m_b = Get_name("<", Macs, TRUE1); |
93 | m_l = Get_name("&", Macs, TRUE1); |
94 | m_bb = Get_name("*", Macs, TRUE1); |
95 | m_up = Get_name("^", Macs, TRUE1); |
96 | } |
97 | |
98 | m_at_s = m_at->ht_value; m_at->ht_value = NIL(char)((char*)((void*)0)); |
99 | m_g_s = m_g->ht_value; m_g->ht_value = NIL(char)((char*)((void*)0)); |
100 | m_q_s = m_q->ht_value; m_q->ht_value = NIL(char)((char*)((void*)0)); |
101 | m_b_s = m_b->ht_value; m_b->ht_value = NIL(char)((char*)((void*)0)); |
102 | m_l_s = m_l->ht_value; m_l->ht_value = NIL(char)((char*)((void*)0)); |
103 | m_bb_s = m_bb->ht_value; m_bb->ht_value = NIL(char)((char*)((void*)0)); |
104 | m_up_s = m_up->ht_value; m_up->ht_value = NIL(char)((char*)((void*)0)); |
105 | |
106 | Make( tlp->cl_prq, tcp ); |
107 | if( tlp->cl_prq->ce_dir ){ |
108 | FREE(tlp->cl_prq->ce_dir)free((char*)(tlp->cl_prq->ce_dir)); |
109 | tlp->cl_prq->ce_dir=NIL(char)((char*)((void*)0)); |
110 | } |
111 | |
112 | m_at->ht_value = m_at_s; |
113 | m_g->ht_value = m_g_s; |
114 | m_q->ht_value = m_q_s; |
115 | m_b->ht_value = m_b_s; |
116 | m_l->ht_value = m_l_s; |
117 | m_bb->ht_value = m_bb_s; |
118 | m_up->ht_value = m_up_s; |
119 | } |