/*
 * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
 * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for
 * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
 */

#include <string.h>
#include <stdlib.h>
#include <stdio.h>

#include "gsm.h"
#include "private.h"

gsm gsm_create ()
{
	gsm r = (gsm)calloc(1, sizeof(struct gsm_state));

        if (r)
          r->nrp = 40;

	return r;
}

/*
 * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
 * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for
 * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
 */

#include <string.h>
#include <stdlib.h>
#include <stdio.h>

#include "gsm.h"
#include "private.h"

gsm gsm_create ()
{
	gsm = (gsm)calloc(sizeof(struct gsm_state));

        if (r)
          r->nrp = 40;

	return r;
}

--- 
+++ 
@@ -13,7 +13,7 @@
 
 gsm gsm_create ()
 {
-	gsm = (gsm)calloc(sizeof(struct gsm_state));
+	gsm r = (gsm)calloc(1, sizeof(struct gsm_state));
 
         if (r)
           r->nrp = 40;
Fix typos in last commit.
