Trivial follow-up fix for 465460 (r=me).
authorAndreas Gal <gal@mozilla.com>
Tue, 16 Dec 2008 21:16:03 -0800
changeset 23077 1329b1e3edd3bd779ebfb12ae4226707633c6bd7
parent 23076 370f4468be2f8d3d038dfba7eff34645de59608c
child 23078 7c898d7b2e9eae2b6983954cd0d6f7d2a19327a9
push id4346
push userrsayre@mozilla.com
push dateFri, 26 Dec 2008 01:26:36 +0000
treeherdermozilla-central@8eb5a5b83a93 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs465460
milestone1.9.2a1pre
Trivial follow-up fix for 465460 (r=me).
js/src/js.cpp
--- a/js/src/js.cpp
+++ b/js/src/js.cpp
@@ -2959,17 +2959,17 @@ MakeAbsolutePathname(JSContext *cx, cons
 
 #endif // XP_UNIX
 
 static JSBool
 Snarf(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
 {
     JSString *str;
     const char *filename;
-    char *pathname;
+    const char *pathname;
     JSStackFrame *fp;
     JSBool ok;
     size_t cc, len;
     char *buf;
     FILE *file;
 
     str = JS_ValueToString(cx, argv[0]);
     if (!str)