Closed
Bug 80095
Opened 23 years ago
Closed 23 years ago
Minor optimization in nsLocalfile::Append
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
mozilla0.9.2
People
(Reporter: sfraser_bugs, Assigned: ccarlen)
References
Details
nsLocalFile::Append(const char *node) { if (!node || (strstr(node, ":") != nsnull)) return NS_ERROR_FILE_UNRECOGNIZED_PATH; return AppendRelativePath(node); } Should replace strstr with strchr, which will be more efficient.
Assignee | ||
Comment 1•23 years ago
|
||
True - easy enough.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.2
Comment 2•23 years ago
|
||
can I get an r= from Conrad and an sr=sfraser?
Index: mozilla/xpcom/io/nsLocalFileMac.cpp
===================================================================
RCS file: /cvsroot/mozilla/xpcom/io/nsLocalFileMac.cpp,v
retrieving revision 1.60
diff -r1.60 nsLocalFileMac.cpp
1218c1218
< if (!node || (strstr(node, ":") != nsnull))
---
> if (!node || (strchr(node, ':') != nsnull))
Reporter | ||
Comment 3•23 years ago
|
||
sr=sfraser
Assignee | ||
Comment 4•23 years ago
|
||
r=ccarlen
Comment 5•23 years ago
|
||
a= asa@mozilla.org for checkin to the trunk. (on behalf of drivers)
Comment 6•23 years ago
|
||
fix is in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•