Changeset 281
- Timestamp:
- 06/02/10 12:42:31 (20 months ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
ows/ows.c (modified) (4 diffs)
-
struct/cgi_request.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ows/ows.c
r279 r281 305 305 { 306 306 ows *o; 307 char *query =NULL;307 char *query; 308 308 309 309 o = ows_init(); … … 335 335 #endif 336 336 337 query=NULL; 337 338 if (!o->exit) query = cgi_getback_query(o); 339 340 /* Log input query if asked */ 341 if (o->log && query) 342 fprintf(o->log, "[QUERY]\n%s\n", query); 338 343 339 344 if (query == NULL || strlen(query) == 0) { … … 361 366 } 362 367 } 363 364 /* Log input query if asked */365 if (o->log && query)366 fprintf(o->log, "[QUERY]\n%s\n", query);367 368 368 369 if (!o->exit) o->request = ows_request_init(); … … 410 411 o->request=NULL; 411 412 } 412 413 413 414 #if TINYOWS_FCGI 414 415 if (o->log) fprintf(o->log, "---\n"); -
trunk/src/struct/cgi_request.c
r278 r281 92 92 assert(query != NULL); 93 93 result = fread(query, query_size, 1, stdin); 94 query[query_size] = '\0'; 94 95 } 95 96 /* local tests */