mirror of
https://github.com/objective-see/BlockBlock.git
synced 2026-03-22 07:02:39 +00:00
improved parsing of launch item plists
This commit is contained in:
@@ -88,11 +88,18 @@
|
||||
itemBinary = getValueFromPlist(event.file.destinationPath, @"Program", YES, 1.0f);
|
||||
}
|
||||
|
||||
//sanity check
|
||||
if(nil == itemBinary)
|
||||
{
|
||||
//bail
|
||||
goto bail;
|
||||
}
|
||||
|
||||
//sanity check
|
||||
if(YES != [itemBinary isKindOfClass:[NSString class]])
|
||||
{
|
||||
//err msg
|
||||
logMsg(LOG_ERR, [NSString stringWithFormat:@"launch item binary path, %@, is not a string", itemBinary]);
|
||||
logMsg(LOG_ERR, [NSString stringWithFormat:@"launch item's binary path, %@, is not a string (but: %@)", itemBinary, itemBinary.className]);
|
||||
|
||||
//unset
|
||||
itemBinary = nil;
|
||||
|
||||
Reference in New Issue
Block a user