diff options
author | Nick White <hg@njw.me.uk> | 2011-08-07 12:32:22 +0100 |
---|---|---|
committer | Nick White <hg@njw.me.uk> | 2011-08-07 12:32:22 +0100 |
commit | 3d08e78700331588f6d43db725cc361f841c012d (patch) | |
tree | aa0b31fff2d797922d0e56089072a4d318d868a7 /getgbook.c | |
parent | db6e6ae080819018bd17760e846fca4e85688cee (diff) |
Neaten code
Diffstat (limited to 'getgbook.c')
-rw-r--r-- | getgbook.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38,7 +38,7 @@ Page *getpagedetail(char *bookid, char *pg, char *cookie) if(!(c = strstr(buf,m))) return NULL; - page = malloc(sizeof(Page)); + page = malloc(sizeof(*page)); strncpy(page->name, pg, STRMAX); page->url[0] = '\0'; page->num = -1; |