From: Benjamin Poirier Date: Thu, 18 Feb 2010 19:42:55 +0000 (-0500) Subject: Don't add "0" rows to a glpk problem X-Git-Tag: v0.12.31~28 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=dce9bf0cdab09cf62bde268246578e2df512b56c;p=lttv.git Don't add "0" rows to a glpk problem glpk aborts if "0" rows are added, skip over the call. Signed-off-by: Benjamin Poirier --- diff --git a/lttv/lttv/sync/event_analysis_eval.c b/lttv/lttv/sync/event_analysis_eval.c index 6b961020..39aa7cda 100644 --- a/lttv/lttv/sync/event_analysis_eval.c +++ b/lttv/lttv/sync/event_analysis_eval.c @@ -1537,7 +1537,10 @@ static glp_prob* lpCreateProblem(GQueue* const lowerHull, GQueue* const // Create the LP problem glp_term_out(GLP_OFF); - glp_add_rows(lp, hullPointNb); + if (hullPointNb > 0) + { + glp_add_rows(lp, hullPointNb); + } glp_add_cols(lp, 2); glp_set_col_name(lp, 1, "a0");