]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/strings.c
Use consistent error messages for missing files.
[thirdparty/binutils-gdb.git] / binutils / strings.c
index 67c601f3b91b9ea16f94c937fa0c68e7ac37c915..68c244cafbd816b578bd008108e5fe811342559a 100644 (file)
@@ -370,6 +370,9 @@ strings_object_file (const char *file)
 static bfd_boolean
 strings_file (char *file)
 {
+  if (get_file_size (file) < 1)
+    return FALSE;
+
   /* If we weren't told to scan the whole file,
      try to open it as an object file and only look at
      initialized data sections.  If that fails, fall back to the