mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
examples:smbclient:testacl3: fix O3 error unused result from fgets
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
This commit is contained in:
parent
ac64aab40e
commit
5dae28632b
@ -27,7 +27,11 @@ int main(int argc, char * argv[])
|
||||
{
|
||||
fprintf(stdout, "Path: ");
|
||||
*path = '\0';
|
||||
fgets(path, sizeof(path) - 1, stdin);
|
||||
p = fgets(path, sizeof(path) - 1, stdin);
|
||||
if (p == NULL) {
|
||||
printf("Error reading from stdin\n");
|
||||
return 1;
|
||||
}
|
||||
if (strlen(path) == 0)
|
||||
{
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user