OSSP CVS Repository

ossp - Difference in ossp-pkg/js/src/jsfile.c versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/js/src/jsfile.c 1.4 -> 1.5

--- jsfile.c     2006/07/24 18:54:41     1.4
+++ jsfile.c     2006/07/24 19:04:53     1.5
@@ -2277,7 +2277,7 @@
     sprintf(url, "file://%s", file->path);
     /* TODO: js_escape in jsstr.h may go away at some point */
 
-#ifdef OSSP
+#ifdef OSSP /* BUGFIX */
 {
     size_t len = strlen(url);
     urlChars = js_InflateString(cx, url, &len);
@@ -2871,18 +2871,18 @@
                     bytes = js_combinePath(cx, file->path, prop_name);
                     *vp = OBJECT_TO_JSVAL(js_NewFileObject(cx, bytes));
                     JS_free(cx, bytes);
-#ifdef OSSP
+#ifdef OSSP /* BUGFIX */
                     closedir(dir);
 #else
-                    PR_CloseDir(dir); /* XXX: bugfix */
+                    PR_CloseDir(dir);
 #endif
                     return JS_TRUE;
                 }
             }
-#ifdef OSSP
+#ifdef OSSP /* BUGFIX */
             closedir(dir);
 #else
-            PR_CloseDir(dir); /* XXX: bugfix */
+            PR_CloseDir(dir);
 #endif
         }
     }

CVSTrac 2.0.1