From 226acde5267c3c88298ae2841206fcd93d293635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Fri, 6 Sep 2002 14:05:41 +0000 Subject: [PATCH] fixed a segfault bug in init git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1159 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- tentec/tentec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tentec/tentec.c b/tentec/tentec.c index 452429d4d..e50217c1b 100644 --- a/tentec/tentec.c +++ b/tentec/tentec.c @@ -2,7 +2,7 @@ * Hamlib Tentec backend - main file * Copyright (c) 2001,2002 by Stephane Fillod * - * $Id: tentec.c,v 1.5 2002-03-13 23:37:13 fillods Exp $ + * $Id: tentec.c,v 1.6 2002-09-06 14:05:41 fillods Exp $ * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as @@ -116,11 +116,13 @@ int tentec_init(RIG *rig) priv->cwbfo = 0; priv->agc = 0.5; /* medium */ priv->lnvol = priv->spkvol = 0.0; /* mute */ - tentec_tuning_factor_calc(rig); memcpy(&priv->str_cal, &priv_caps->str_cal, sizeof(cal_table_t)); rig->state.priv = (rig_ptr_t)priv; + /* tentec_tuning_factor_calc needs rig->state.priv */ + tentec_tuning_factor_calc(rig); + return RIG_OK; }