X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Ftracectl.c;h=233a460d6163bdaa3ff7d61d100b646a91c763c1;hb=eb5d20c68aaf73661ffc02ba8fea3683c0358702;hp=25fa4d57ecde33954791d2bca5a21a4639af9a2d;hpb=fbae86d664c12e450d3cb702b602701d37781b41;p=lttng-ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 25fa4d57..233a460d 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -100,11 +100,11 @@ static void print_markers(FILE *fp) while (iter.marker) { fprintf(fp, "marker: %s/%s %d \"%s\" %p\n", - iter.marker->channel, - iter.marker->name, - (int)imv_read(iter.marker->state), - iter.marker->format, - iter.marker->location); + (*iter.marker)->channel, + (*iter.marker)->name, + (int)imv_read((*iter.marker)->state), + (*iter.marker)->format, + (*iter.marker)->location); marker_iter_next(&iter); } unlock_markers(); @@ -828,7 +828,7 @@ static void process_marker_cmd(int sock, int command, { struct ustcomm_header _reply_header; struct ustcomm_header *reply_header = &_reply_header; - int result; + int result = 0; memset(reply_header, 0, sizeof(*reply_header)); @@ -1314,8 +1314,8 @@ static void __attribute__((constructor)) init() DBG("now iterating on markers already registered"); while (iter.marker) { - DBG("now iterating on marker %s", iter.marker->name); - auto_probe_connect(iter.marker); + DBG("now iterating on marker %s", (*iter.marker)->name); + auto_probe_connect(*iter.marker); marker_iter_next(&iter); } }