Fixed segfault in prof_history

This commit is contained in:
James Booth
2012-05-01 22:09:33 +01:00
parent 8202255d0f
commit 773255b48f
2 changed files with 45 additions and 13 deletions

View File

@@ -206,7 +206,7 @@ void start_session_add_new_submit_previous(void)
assert_string_equals("hello", item1);
char *item2 = p_history_next(history, item1);
assert_is_null(item2);
assert_string_equals("", item2);
char *item3 = p_history_previous(history, "new text");
assert_string_equals("hello", item3);