fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 3 Jun 2011 13:45:17 +0000 (13:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 3 Jun 2011 13:45:17 +0000 (13:45 +0000)
src/monkey/action_api.c
src/monkey/gnunet_monkey_action.h

index 7614ad844202934790ffdc5afa78f3379334b451..be160af5fd2d5103c8671442bc885a9f2579319c 100644 (file)
@@ -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;
index 9e4aebf502f1a6c4ed326ad9ff846fbec78d149a..d46a22a2f4bc89a24ad1ac5975fd02d7e46384b7 100644 (file)
@@ -51,7 +51,7 @@ extern "C"
 struct Variable
 {
   struct Variable *next;
-  struct Varialble *prev;
+  struct Variable *prev;
   const char *name;
   const char *value;
 };