You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am running this very simple test program (as part of a complete suite) under valgrind.
/* System headers */
include <stdio.h>
include <stdlib.h>
include <stdbool.h>
include <assert.h>
/* public header */
include "chash.h"
/* Basic allocate and free */
static void alloc_free (void)
{
CHASH_CONTEXT ht;
int ret = chash_initialize (& ht, true);
assert (ret == CHASH_ERROR_DONE);
ret = chash_terminate (& ht, true);
assert (ret == CHASH_ERROR_DONE);
}
int main (int argc, char * argv [])
{
alloc_free ();
return 0;
}
valgrind output is:
==24137== Conditional jump or move depends on uninitialised value(s)
==24137== at 0x4010AD: chash_initialize (chash.c:139)
==24137== by 0x400BA1: alloc_free (basic.c:16)
==24137== by 0x400C35: main (basic.c:27)
minor problem but annoying because it forces initialization at user level.
/rocco
The text was updated successfully, but these errors were encountered:
Hi,
I am running this very simple test program (as part of a complete suite) under valgrind.
/* System headers */
include <stdio.h>
include <stdlib.h>
include <stdbool.h>
include <assert.h>
/* public header */
include "chash.h"
/* Basic allocate and free */
static void alloc_free (void)
{
CHASH_CONTEXT ht;
int ret = chash_initialize (& ht, true);
assert (ret == CHASH_ERROR_DONE);
ret = chash_terminate (& ht, true);
assert (ret == CHASH_ERROR_DONE);
}
int main (int argc, char * argv [])
{
alloc_free ();
return 0;
}
valgrind output is:
==24137== Conditional jump or move depends on uninitialised value(s)
==24137== at 0x4010AD: chash_initialize (chash.c:139)
==24137== by 0x400BA1: alloc_free (basic.c:16)
==24137== by 0x400C35: main (basic.c:27)
minor problem but annoying because it forces initialization at user level.
/rocco
The text was updated successfully, but these errors were encountered: