From 497fe0e06092b788dd2037cebaf4295e09afc207 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Thu, 10 Aug 2006 11:46:44 +1000 Subject: [PATCH] Fixed null dereference in DMC2280Connect r1053 | ffr | 2006-08-10 11:46:44 +1000 (Thu, 10 Aug 2006) | 2 lines --- site_ansto/motor_dmc2280.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index 937f80de..1f8e5c7b 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -126,8 +126,6 @@ typedef struct __MoDriv { #define STR_RESIZE_LENGTH 256 #define CMDLEN 1024 #define BUFFLEN 512 -#define FAILURE 0 -#define SUCCESS 1 #define _SAVEPOWER 0 #define HOME "home" @@ -909,7 +907,7 @@ static void KillDMC2280(/*@only@*/void *pData){ if (controller==NULL) { snprintf(pError, ERRLEN, "ERROR: failed to create controller for %s at port %d", - controller->pHost, controller->iPort); + host, port); SCWrite(pCon,pError,eError); return NULL; }