keep checker happy

This commit is contained in:
Richard Frith-Macdonald 2018-02-07 13:02:08 +00:00
parent 9ba8e9123b
commit 8420eeed03

View file

@ -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);