lsm_cursor.c:28: warning: 'primary' may be used uninitialized in this function