Commit dafed964 authored by Juergen Nickelsen's avatar Juergen Nickelsen
Browse files

fixes for two initialization bugs discovered by the optimizer

parent 40bbf507
......@@ -11,7 +11,7 @@ SOURCES = main.c hashmap.c xmemory.c objects.c printer.c reader.c signals.c \
ob_common.c numbers.c
OBJECTS = $(subst .c,.o,$(SOURCES))
HOBJECTS = objects.o xmemory.o xdump.o strbuf.o
CFLAGS = -g# -O4 -DNDEBUG
CFLAGS = -g -O # -O4 -DNDEBUG
LDLIBS = -lm
CC = gcc -Wall -Werror -std=c99 -m64
TARGET = hsl
......
......@@ -215,7 +215,7 @@ obp_t port_getc(obp_t port)
obp_t port_read(obp_t port, uint len)
{
Lport_t *p = AS(port, PORT);
char *read_buf;
char *read_buf = 0;
int read_ret;
PROTVAR(retval);
......
......@@ -521,7 +521,7 @@ obp_t reader_macro(session_context_t *sc)
obp_t read_expr(session_context_t *sc)
{
PROTECT;
uint nelem;
uint nelem = 0;
PROTVAR(retval);
PROTVAR(kvpairs);
PROTVAR(map);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment