From: Christian Grothoff Date: Fri, 3 Jun 2011 13:45:17 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~18348 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=183a24d2f429a8ab0c2a2e3cd4957e0dbf655744;p=oweals%2Fgnunet.git fix --- diff --git a/src/monkey/action_api.c b/src/monkey/action_api.c index 7614ad844..be160af5f 100644 --- a/src/monkey/action_api.c +++ b/src/monkey/action_api.c @@ -208,7 +208,6 @@ analyzeSegmentationFault (struct GNUNET_MONKEY_ACTION_Context *cntxt) { struct Expression *faultyExpression = NULL; struct Expression *tmp; - int expressionLength = 0; faultyExpression = getFaultyExpression (cntxt); @@ -448,17 +447,18 @@ GNUNET_MONKEY_ACTION_rerun_with_gdb (struct GNUNET_MONKEY_ACTION_Context static const char * variableListToString (struct Variable *head) { - const char *string = GNUNET_malloc (200 * sizeof (char)); - const char *strTmp; + char *string = GNUNET_malloc (200 * sizeof (char)); + char *strTmp; struct Variable *tmp = head; - asprintf (&strTmp, "%s = %s\n", tmp->name, tmp->value); + + GNUNET_asprintf (&strTmp, "%s = %s\n", tmp->name, tmp->value); strcpy (string, strTmp); - free (strTmp); + GNUNET_free (strTmp); while (NULL != tmp) { - asprintf (&strTmp, "%s = %s\n", tmp->name, tmp->value); + GNUNET_asprintf (&strTmp, "%s = %s\n", tmp->name, tmp->value); strcat (string, strTmp); - free (strTmp); + GNUNET_free (strTmp); tmp = tmp->next; } return string; diff --git a/src/monkey/gnunet_monkey_action.h b/src/monkey/gnunet_monkey_action.h index 9e4aebf50..d46a22a2f 100644 --- a/src/monkey/gnunet_monkey_action.h +++ b/src/monkey/gnunet_monkey_action.h @@ -51,7 +51,7 @@ extern "C" struct Variable { struct Variable *next; - struct Varialble *prev; + struct Variable *prev; const char *name; const char *value; };