Oleg-N-Cher/CPfront

Wrong initializing a pointer when define more than one pointer

Oleg-N-Cher opened this issue · 0 comments

I faced such error. The code VAR vadj, hadj: Gtk.GtkAdjustment; compiles to С as:

	GtkAdjustment__rec* vadj = NIL, hadj = NIL;

It's wrong. Then how right it would be:

	GtkAdjustment__rec* vadj = NIL, *hadj = NIL;

The hotfix corrects this problem by placing such initializations into different definitions:

	GtkAdjustment__rec* vadj = NIL;
	GtkAdjustment__rec* hadj = NIL;