I can’t seem to figure out what I am doing wrong here
My struct:
struct listItem {const gchar *name,*val1,*val2,*val3;};
then later on I do this:
listItem *temp;
const gchar *b1 = (const gchar *) (gtk_entry_buffer_get_text(GTK_ENTRY_BUFFER(obgect->b1)));
this all works fine but I get a segmentation fault here:
temp->name = b1;
sorry I suck so bad
You need to allocate storage for
temp, like: