Fossil SCM

Fix compiler warnings.

mistachkin 2013-10-14 08:28 trunk
Commit c932fa47ef58e60d69bf9bd1942b41fd62452c8f
1 file changed +2 -2
+2 -2
--- src/cgi.c
+++ src/cgi.c
@@ -1323,12 +1323,12 @@
13231323
*/
13241324
void cgi_handle_ssh_http_request(const char *zIpAddr){
13251325
static int nCycles = 0;
13261326
static char *zCmd = 0;
13271327
char *z, *zToken;
1328
- const char *zType;
1329
- int i, content_length;
1328
+ const char *zType = 0;
1329
+ int i, content_length = 0;
13301330
char zLine[2000]; /* A single line of input. */
13311331
13321332
if( zIpAddr ){
13331333
if( nCycles==0 ){
13341334
cgi_setenv("REMOTE_ADDR", zIpAddr);
13351335
--- src/cgi.c
+++ src/cgi.c
@@ -1323,12 +1323,12 @@
1323 */
1324 void cgi_handle_ssh_http_request(const char *zIpAddr){
1325 static int nCycles = 0;
1326 static char *zCmd = 0;
1327 char *z, *zToken;
1328 const char *zType;
1329 int i, content_length;
1330 char zLine[2000]; /* A single line of input. */
1331
1332 if( zIpAddr ){
1333 if( nCycles==0 ){
1334 cgi_setenv("REMOTE_ADDR", zIpAddr);
1335
--- src/cgi.c
+++ src/cgi.c
@@ -1323,12 +1323,12 @@
1323 */
1324 void cgi_handle_ssh_http_request(const char *zIpAddr){
1325 static int nCycles = 0;
1326 static char *zCmd = 0;
1327 char *z, *zToken;
1328 const char *zType = 0;
1329 int i, content_length = 0;
1330 char zLine[2000]; /* A single line of input. */
1331
1332 if( zIpAddr ){
1333 if( nCycles==0 ){
1334 cgi_setenv("REMOTE_ADDR", zIpAddr);
1335

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button