To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96058
                 Issue #|96058
                 Summary|unotools: ambiguous && and ||
               Component|utilities
                 Version|DEV300m35
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|fs
             Reported by|cmc





------- Additional comments from [EMAIL PROTECTED] Mon Nov 10 16:43:35 +0000 
2008 -------
unotools/source/ucbhelper/ucbhelper.cxx has the following code..

BOOL bWild = bAllowWildCards && rName.Search( '*' ) != STRING_NOTFOUND ||
rName.Search( '?' ) != STRING_NOTFOUND;

which precedence-wise binds as...

BOOL bWild = (bAllowWildCards && rName.Search( '*' ) != STRING_NOTFOUND) ||
rName.Search( '?' ) != STRING_NOTFOUND;

(as attachment one would do), but that looks really suspicious, I suspect it
should be 

BOOL bWild = bAllowWildCards && (rName.Search( '*' ) != STRING_NOTFOUND ||
rName.Search( '?' ) != STRING_NOTFOUND);

as attachment two does

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to