[gjs] console: Fix ordering of script contents scanning



commit a0124c6b787befaf47083c9e1c48fcea1bde5246
Author: Colin Walters <walters verbum org>
Date:   Mon Dec 20 15:11:54 2010 -0500

    console: Fix ordering of script contents scanning

 gjs/console.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/console.c b/gjs/console.c
index d4251d4..7c2553e 100644
--- a/gjs/console.c
+++ b/gjs/console.c
@@ -71,8 +71,8 @@ main(int argc, char **argv)
     g_free(command_line);
 
     if (command != NULL) {
-        source_js_version = gjs_context_scan_buffer_for_js_version(script, 1024);
         script = command;
+        source_js_version = gjs_context_scan_buffer_for_js_version(script, 1024);
         len = strlen(script);
         filename = "<command line>";
     } else if (argc <= 1) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]