Revision: 77857
          http://sourceforge.net/p/brlcad/code/77857
Author:   starseeker
Date:     2020-12-01 23:57:05 +0000 (Tue, 01 Dec 2020)
Log Message:
-----------
Initialize

Modified Paths:
--------------
    brlcad/trunk/src/libbu/tbl.c

Modified: brlcad/trunk/src/libbu/tbl.c
===================================================================
--- brlcad/trunk/src/libbu/tbl.c        2020-12-01 22:40:03 UTC (rev 77856)
+++ brlcad/trunk/src/libbu/tbl.c        2020-12-01 23:57:05 UTC (rev 77857)
@@ -41,7 +41,7 @@
 struct bu_tbl *
 bu_tbl_create()
 {
-    struct bu_tbl *tbl;
+    struct bu_tbl *tbl = NULL;
 
     tbl = (struct bu_tbl *)bu_calloc(1, sizeof(struct bu_tbl), "bu_tbl alloc");
     tbl->t = ft_create_table();
@@ -177,14 +177,14 @@
 struct bu_tbl *
 bu_tbl_printf(struct bu_tbl *tbl, const char *fmt, ...)
 {
-    char *cstr;
+    char *cstr = NULL;
 
     va_list ap;
 #define BUFSZ 4096
     char buf[BUFSZ];
-    char *back;
-    char *last;
-    size_t zeros;
+    char *back = NULL;
+    char *last = NULL;
+    size_t zeros = 0;
 
     if (!fmt)
        return tbl;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to