diff options
-rw-r--r-- | getabook.c | 3 | ||||
-rw-r--r-- | getgbook.c | 3 | ||||
-rw-r--r-- | util.c | 3 |
3 files changed, 5 insertions, 4 deletions
@@ -64,7 +64,8 @@ int fillurls(char *buf) { int getpagelist() { - char url[URLMAX], b[STRMAX] = ""; + char url[URLMAX]; + char b[STRMAX] = ""; char *buf = NULL; char *s, *c; int i; @@ -77,7 +77,8 @@ int getpagelist() int getpageurls(char *pagecode, char *cookie) { char url[URLMAX], code[STRMAX], m[STRMAX]; - char *c = NULL, *d, *p, *q, *buf = NULL; + char *c = NULL, *buf = NULL; + char *d, *p, *q; int i, j; snprintf(url, URLMAX, "/books?id=%s&pg=%s&jscmd=click3&q=subject:a&redir_esc=y", bookid, pagecode); @@ -57,8 +57,7 @@ int request(char *host, char *request, char *savecookie, char **body) { char *headpos; size_t headsize; char headline[BUFSIZ] = ""; - char *buf; - char *cur, *pos; + char *buf, *cur, *pos; if((fd = dial(host, "80")) == -1) return 0; |