[Groonga-commit] groonga/groonga at b8e79b2 [master] Initialize a variable not to return a garbage value

Back to archive index

Susumu Yata null+****@clear*****
Wed Aug 30 17:01:17 JST 2017


Susumu Yata	2017-08-30 17:01:17 +0900 (Wed, 30 Aug 2017)

  New Revision: b8e79b20b3d52400f24d5edcc20461101262993f
  https://github.com/groonga/groonga/commit/b8e79b20b3d52400f24d5edcc20461101262993f

  Message:
    Initialize a variable not to return a garbage value

  Modified files:
    lib/obj.c

  Modified: lib/obj.c (+1 -1)
===================================================================
--- lib/obj.c    2017-08-31 18:02:51 +0900 (a1b2acb23)
+++ lib/obj.c    2017-08-30 17:01:17 +0900 (09d71ec07)
@@ -648,7 +648,7 @@ grn_obj_get_io(grn_ctx *ctx, grn_obj *obj)
 size_t
 grn_obj_get_disk_usage(grn_ctx *ctx, grn_obj *obj)
 {
-  size_t usage;
+  size_t usage = 0;
 
   GRN_API_ENTER;
 
-------------- next part --------------
HTML����������������������������...
Download 



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