[Groonga-commit] groonga/groonga at 37d3cac [master] grn_pat: initialize a variable to suppress a warning

Back to archive index

susumu.yata null+****@clear*****
Sun Nov 1 21:42:35 JST 2015


susumu.yata	2015-11-01 21:42:35 +0900 (Sun, 01 Nov 2015)

  New Revision: 37d3cace02fe12a1aa0a22b38359fe3dc26d81ee
  https://github.com/groonga/groonga/commit/37d3cace02fe12a1aa0a22b38359fe3dc26d81ee

  Message:
    grn_pat: initialize a variable to suppress a warning
    
    The warning is "‘rno’ may be used uninitialized in this function".

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+1 -1)
===================================================================
--- lib/pat.c    2015-11-01 21:22:04 +0900 (00b3e39)
+++ lib/pat.c    2015-11-01 21:42:35 +0900 (cfe11ca)
@@ -1122,7 +1122,7 @@ _grn_pat_del(grn_ctx *ctx, grn_pat *pat, const char *key, uint32_t key_size, int
              grn_table_delete_optarg *optarg)
 {
   grn_pat_delinfo *di;
-  pat_node *rn, *rn0 = NULL, *rno;
+  pat_node *rn, *rn0 = NULL, *rno = NULL;
   int c = -1, c0 = -1, ch;
   uint32_t len = key_size * 16;
   grn_id r, otherside, *proot, *p, *p0 = NULL;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index