diff --git a/Makefile b/Makefile index 71e20bd..113d158 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # CFLAGS= -Wall -Werror -Wextra -pedantic \ - -std=gnu99 + -std=gnu99 -O2 -g LDFLAGS=-lm -lXaw -lXt -lX11 # gcc -o xdu -O2 -fno-strength-reduce -fno-strict-aliasing -L/usr/lib64 xdu.o xwin.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 diff --git a/xdu.c b/xdu.c index 37b0a02..c5c1413 100644 --- a/xdu.c +++ b/xdu.c @@ -999,7 +999,7 @@ void savepschildren(FILE* fp, struct node* nodep, struct rect rect, int showsize height, top; struct node* np; - char *name, + char *name="n/a", label[1024]; struct rect subrect; @@ -1148,7 +1148,7 @@ void fprintsvgnode(FILE* fp, struct rect rect) void fprintsvgnodetext(FILE* fp, int x, int y, long long size, char* name, int showsize) { char buffer[1024], - *text; + *text="n/a"; switch (showsize) { case 0: