[Groonga-commit] groonga/groonga at 60ae143 [master] mruby: add missing initialization

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue Oct 8 23:22:22 JST 2013


Kouhei Sutou	2013-10-08 23:22:22 +0900 (Tue, 08 Oct 2013)

  New Revision: 60ae143240c310d25e6a77fd5153e682a74f4c03
  https://github.com/groonga/groonga/commit/60ae143240c310d25e6a77fd5153e682a74f4c03

  Message:
    mruby: add missing initialization
    
    If it is missing, unknown value will be returned when too long script
    path is passed.

  Modified files:
    lib/mrb.c

  Modified: lib/mrb.c (+1 -1)
===================================================================
--- lib/mrb.c    2013-10-08 23:21:15 +0900 (8e04882)
+++ lib/mrb.c    2013-10-08 23:22:22 +0900 (f2cdad2)
@@ -65,7 +65,7 @@ grn_mrb_open_script(grn_ctx *ctx, const char *path)
   char dir_last_char;
   char expanded_path[PATH_MAX];
   int path_length, max_path_length;
-  FILE *script_file;
+  FILE *script_file = NULL;
 
   if (path[0] == '/') {
     expanded_path[0] = '\0';
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る