Author: issac
Date: Tue Jan 13 12:49:10 2009
New Revision: 734238
URL: http://svn.apache.org/viewvc?rev=734238&view=rev
Log:
Get rid of weird old NULL capturing code. I don't quite recall why I took such
pains to catch NULL in the first place; the only thing that tickles my memory
is that it might have had to do with wide chars on win32 platforms
Modified:
httpd/apreq/trunk/library/module_cgi.c
Modified: httpd/apreq/trunk/library/module_cgi.c
URL:
http://svn.apache.org/viewvc/httpd/apreq/trunk/library/module_cgi.c?rev=734238&r1=734237&r2=734238&view=diff
==============================================================================
--- httpd/apreq/trunk/library/module_cgi.c (original)
+++ httpd/apreq/trunk/library/module_cgi.c Tue Jan 13 12:49:10 2009
@@ -77,7 +77,7 @@
};
#define CRLF "\015\012"
-const char *nullstr;
+const char *nullstr = 0;
#define DEFAULT_PROMPT "([$t] )$n(\\($l\\))([$d]): "
#define MAX_PROMPT_NESTING_LEVELS 8
#define MAX_BUFFER_SIZE 65536
@@ -997,13 +997,10 @@
req->body_status = APR_EINIT;
if (is_interactive_mode(pool)) {
- char buf[10];
req->interactive_mode = 1;
apr_file_open_stdout(&(req->sout), pool);
apr_file_open_stdin(&(req->sin), pool);
req->promptstr=apr_pstrdup(pool, DEFAULT_PROMPT);
- sprintf(buf, "%s", NULL);
- nullstr = apr_pstrdup(pool, buf);
}
apr_pool_userdata_setn(&req->handle, USER_DATA_KEY, NULL, pool);