From 56e05f3bb7558e5e276552c9881f4a1e93656442 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 17 Jul 2011 18:43:00 +0100 Subject: Fix free bug --- TODO | 2 +- config.mk | 8 ++++---- getgbook.c | 2 -- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/TODO b/TODO index 082526d..d8e96a6 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,4 @@ -order is prob available even for pages that don't have src. check this, and if so rewrite getpagedetails to set it even if no src (rather than just bailing) +order is available even for pages that don't have src. check this, and if so rewrite getpagedetails to set it even if no src (rather than just bailing) use order to be able to use real page numbers (getpagecode) to find this advance through click3 letter by letter until either } (none found) or strcmp "order" diff --git a/config.mk b/config.mk index 5b1224c..145c96d 100644 --- a/config.mk +++ b/config.mk @@ -8,11 +8,11 @@ CFLAGS = -ansi -pedantic -Wall -Wextra -Werror -g -D_POSIX_C_SOURCE=200112L \ -DVERSION=\"$(VERSION)\" # musl static -CC = musl-gcc -LDFLAGS = -static #-s +#CC = musl-gcc +#LDFLAGS = -static #-s # glibc dynamic -#CC = cc -#LDFLAGS = +CC = cc +LDFLAGS = LD = ld diff --git a/getgbook.c b/getgbook.c index d11761d..2b999c2 100644 --- a/getgbook.c +++ b/getgbook.c @@ -139,7 +139,5 @@ int main(int argc, char *argv[]) } } - free(bookid); - return EXIT_SUCCESS; } -- cgit v1.2.3