summaryrefslogtreecommitdiff
path: root/src/mon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mon.c')
-rw-r--r--src/mon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mon.c b/src/mon.c
index 7f426d2..7ec2382 100644
--- a/src/mon.c
+++ b/src/mon.c
@@ -259,7 +259,10 @@ static int dcc_mon_do_file(char *dirname, char *filename,
return 0;
}
- asprintf(&fullpath, "%s/%s", dirname, filename);
+ checked_asprintf(&fullpath, "%s/%s", dirname, filename);
+ if (fullpath == NULL) {
+ return EXIT_OUT_OF_MEMORY;
+ }
rs_trace("process %s", fullpath);
/* Remember that the file might disappear at any time, so open it