summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c8ae2f9..ee65ec2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1180,7 +1180,8 @@ int main(int argc, char **argv) {
dev_dump_image(dev, i, image_tmp_name(i));
if ( buf[0] )
- chdir(buf);
+ if ( chdir(buf) < 0 )
+ ERROR_INFO("Cannot chdir back to %s", buf);
}