From: Jan Pospíšil Date: Wed, 20 Sep 2006 08:35:07 +0000 (+0000) Subject: very stupid calloc typo X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=7a3e48a06c58f9b334ed50f205e6e61bf2265adc;p=jra1mw.git very stupid calloc typo --- 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);