find.c (search_content): type accuracy of return value.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-01-29 16:30:58 +03:00 committed by Slava Zanko
parent 77ee33e2e5
commit fe60e4c89b
1 changed files with 2 additions and 2 deletions

View File

@ -919,14 +919,14 @@ search_content (Dlg_head * h, const char *directory, const char *filename)
if (mc_stat (fname, &s) != 0 || !S_ISREG (s.st_mode))
{
g_free (fname);
return 0;
return FALSE;
}
file_fd = mc_open (fname, O_RDONLY);
g_free (fname);
if (file_fd == -1)
return 0;
return FALSE;
g_snprintf (buffer, sizeof (buffer), _("Grepping in %s"), str_trunc (filename, FIND2_X_USE));