summaryrefslogtreecommitdiffstats
path: root/edify/main.c
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-02-18 03:31:48 +0100
committerKenny Root <kroot@google.com>2010-02-18 03:33:44 +0100
commit21854ccdb250e6e81311b4317934e8c953b252a8 (patch)
treee6f8048de230914aaaf65f7ddb72a41b460b4ac9 /edify/main.c
parentam da846fcf: am 4c382b13: reconcile main tree with open-source eclair (diff)
downloadandroid_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.gz
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.bz2
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.lz
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.xz
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.zst
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.zip
Diffstat (limited to 'edify/main.c')
-rw-r--r--edify/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/edify/main.c b/edify/main.c
index 0e3610847..a2b74ad92 100644
--- a/edify/main.c
+++ b/edify/main.c
@@ -181,6 +181,10 @@ int main(int argc, char** argv) {
}
FILE* f = fopen(argv[1], "r");
+ if (f == NULL) {
+ printf("%s: %s: No such file or directory\n", argv[0], argv[1]);
+ return 1;
+ }
char buffer[8192];
int size = fread(buffer, 1, 8191, f);
fclose(f);