Sorry, it's me again, made a new "discovery"

In fact there is a bug in NSLog.m: 147
 if ((GSUserDefaultsFlag(GSLogSyslog) == YES
|| write(_NSLogDescriptor, buf, len) != (int)len) && !IsDebuggerPresent())

why is it OR (||) shouldn't it be AND (&&)
certainly if the user disable GSLogSyslog it's bug to ignore his setting, isn't it?

So it should be set to:
 if ((GSUserDefaultsFlag(GSLogSyslog) == YES
&& write(_NSLogDescriptor, buf, len) != (int)len) && !IsDebuggerPresent())



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to