MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cgiClearVariables

Function cgiClearVariables

cgi-bin/var.c:137–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 */
136
137void
138cgiClearVariables(void)
139{
140 int i, j; /* Looping vars */
141 _cgi_var_t *v; /* Current variable */
142
143
144 fputs("DEBUG: cgiClearVariables called.\n", stderr);
145
146 for (v = form_vars, i = form_count; i > 0; v ++, i --)
147 {
148 free(v->name);
149 for (j = 0; j < v->nvalues; j ++)
150 if (v->values[j])
151 free(v->values[j]);
152 }
153
154 form_count = 0;
155
156 cgi_unlink_file();
157}
158
159
160/*

Callers 4

mainFunction · 0.85
cgiShowJobsFunction · 0.85
cgiInitializeFunction · 0.85
do_am_classFunction · 0.85

Calls 1

cgi_unlink_fileFunction · 0.85

Tested by

no test coverage detected