From 7a3e48a06c58f9b334ed50f205e6e61bf2265adc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Wed, 20 Sep 2006 08:35:07 +0000 Subject: [PATCH] very stupid calloc typo --- org.glite.lb.server/src/lb_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.server/src/lb_plugin.c b/org.glite.lb.server/src/lb_plugin.c index 5a49214..fb3b08a 100644 --- a/org.glite.lb.server/src/lb_plugin.c +++ b/org.glite.lb.server/src/lb_plugin.c @@ -529,7 +529,7 @@ static int lb_query(void *fpctx,void *handle,const char *attr,glite_jp_attrval_t val = s_str = t_str = r_str = NULL; old_val = strdup(""); - t = calloc(1, sizeof(t)); + t = calloc(1, sizeof(*t)); /* first record is Submitted - hopefully in fullStatusHistory[0] */ if ((h->fullStatusHistory[0] && (h->fullStatusHistory[0]->state == EDG_WLL_JOB_SUBMITTED)) ) { @@ -597,7 +597,7 @@ static int lb_query(void *fpctx,void *handle,const char *attr,glite_jp_attrval_t val = s_str = t_str = r_str = NULL; old_val = strdup(""); - t = calloc(1, sizeof(t)); + t = calloc(1, sizeof(*t)); i = 0; while (h->fullStatusHistory[i]) { s_str = edg_wll_StatToString(h->fullStatusHistory[i]->state); -- 1.8.2.3