Fix compilation warnings

This commit is contained in:
Pali Rohár committed 2012-06-23 17:39:33 +02:00
1 parent 58c0dbe275
commit 027a6d9a18
6 files changed
+15 -9

No files matched your search

+6 -2
View File
@@ -517,8 +517,12 @@ int main(int argc, char **argv)
}
if (unpack) {
if (reverseto)
chdir(reverseto);
if (reverseto) {
if (chdir(reverseto) < 0) {
printf("Error: Cannot change directory to %s\n", reverseto);
return 1;
}
}
unpack_fiasco_image(fiasco_image);
return 0;
}