From: Dennis Schafroth Date: Thu, 12 Apr 2012 10:46:18 +0000 (+0200) Subject: Fix C90 warning X-Git-Tag: v1.6.13~60 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d83ed24b0cf7522f931e689eefb6f7f6d74b8b28;p=pazpar2-moved-to-github.git Fix C90 warning --- diff --git a/src/client.c b/src/client.c index 26dd6ef..9781abc 100644 --- a/src/client.c +++ b/src/client.c @@ -758,13 +758,12 @@ void client_start_search(struct client *cl) const char *opt_preferred = session_setting_oneval(sdb, PZ_PREFERRED); const char *extra_args = session_setting_oneval(sdb, PZ_EXTRA_ARGS); const char *opt_present_chunk = session_setting_oneval(sdb, PZ_PRESENT_CHUNK); - /* Default present chunk */ - int present_chunk = 20; + ZOOM_query q; + char maxrecs_str[24], startrecs_str[24], present_chunk_str[24]; + int present_chunk = 20; // Default chunk size if (opt_present_chunk && strcmp(opt_present_chunk,"")) { present_chunk = atoi(opt_present_chunk); } - char maxrecs_str[24], startrecs_str[24], present_chunk_str[24]; - ZOOM_query q; assert(link);