+2016-01-25 Benno Schulenberg <bensberg@justemail.net>
+ * src/files.c (update_poshistory): Handle an update of the first
+ element correctly.
+
2016-01-24 Benno Schulenberg <bensberg@justemail.net>
* src/files.c (update_poshistory): Move an updated item to the end
of the list, so that it won't be dropped any time soon. The problem
else
posprev->next = theone;
} else if (posptr->next != NULL) {
- posprev->next = posptr->next;
+ if (posprev == NULL)
+ position_history = posptr->next;
+ else
+ posprev->next = posptr->next;
while (posptr->next != NULL)
posptr = posptr->next;
posptr->next = theone;