diff options
Diffstat (limited to 'src/ftee')
-rw-r--r-- | src/ftee/Makefile | 1 | ||||
-rw-r--r-- | src/ftee/main.c | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/ftee/Makefile b/src/ftee/Makefile index 0c27b4cbc..1b1cdec43 100644 --- a/src/ftee/Makefile +++ b/src/ftee/Makefile | |||
@@ -2,6 +2,7 @@ | |||
2 | ROOT = ../.. | 2 | ROOT = ../.. |
3 | -include $(ROOT)/config.mk | 3 | -include $(ROOT)/config.mk |
4 | 4 | ||
5 | MOD_DIR = src/ftee | ||
5 | PROG = ftee | 6 | PROG = ftee |
6 | TARGET = $(PROG) | 7 | TARGET = $(PROG) |
7 | 8 | ||
diff --git a/src/ftee/main.c b/src/ftee/main.c index a34a76b26..20e25c202 100644 --- a/src/ftee/main.c +++ b/src/ftee/main.c | |||
@@ -148,10 +148,8 @@ static int is_dir(const char *fname) { | |||
148 | rv = stat(fname, &s); | 148 | rv = stat(fname, &s); |
149 | else { | 149 | else { |
150 | char *tmp; | 150 | char *tmp; |
151 | if (asprintf(&tmp, "%s/", fname) == -1) { | 151 | if (asprintf(&tmp, "%s/", fname) == -1) |
152 | fprintf(stderr, "Error: cannot allocate memory, %s:%d\n", __FILE__, __LINE__); | 152 | errExit("asprintf"); |
153 | exit(1); | ||
154 | } | ||
155 | rv = stat(tmp, &s); | 153 | rv = stat(tmp, &s); |
156 | free(tmp); | 154 | free(tmp); |
157 | } | 155 | } |