mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
keep checker happy
This commit is contained in:
parent
9ba8e9123b
commit
8420eeed03
1 changed files with 5 additions and 1 deletions
|
@ -338,7 +338,11 @@ static NSMapTable *portToNamesMap;
|
|||
fgets(socket_path, sizeof(socket_path), f);
|
||||
if (strlen(socket_path) > 0) socket_path[strlen(socket_path) - 1] = 0;
|
||||
|
||||
fscanf(f, "%i", &pid);
|
||||
if (fscanf(f, "%i", &pid) != 1)
|
||||
{
|
||||
NSDebugLLog(@"NSMessagePort", @"not live, couldn'read PID");
|
||||
return NO;
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
|
||||
|
|
Loading…
Reference in a new issue