PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] How to Initialize Struct?
Date: Friday, 24 Apr 2020, 19:37:39


    > Message Posted By: Unknown
    >
    > 209     struct elt *e = DictSearch(d, currPos);
    > Whenever I try to set a element, I get this error
    >
    > ==16390== Use of uninitialised value of size 8
    > ==16390==    at 0x483BBE6: strlen (vg_replace_strmem.c:461)
    > ==16390==    by 0x48F9295: puts (ioputs.c:35)
    > ==16390==    by 0x401B49: main (Nine20.c:209)
    > ==16390==  Uninitialised value was created by a stack allocation
    > ==16390==    at 0x401A10: main (Nine20.c:190)
    >
    > Is there something different I need to do to initialize a struct?

The error above is from a call to puts(), and thus was
not the result of executing the line above.  Without
being able to see and run your code, I cannot diagnose
the problem further.

--Stan-
PREV INDEX NEXT