From f117343477e596937bdfcf0ddce447c0d127b9cf Mon Sep 17 00:00:00 2001 From: Stefan Zabka Date: Wed, 20 May 2020 21:13:35 +0200 Subject: Fixed another edge case and documentation --- 02_exercise/shell.c | 1 + 1 file changed, 1 insertion(+) (limited to '02_exercise/shell.c') diff --git a/02_exercise/shell.c b/02_exercise/shell.c index c0c51e1..d155a58 100644 --- a/02_exercise/shell.c +++ b/02_exercise/shell.c @@ -20,6 +20,7 @@ void print_prompt(char const *const original_wd, char const *current_wd); int exec_command(char *command); int main(void) { + char const *const original_wd = get_current_dir_name(); char const *prompt = relative_path(original_wd, original_wd); printf("%s \n", original_wd); -- cgit v1.2.3-54-g00ecf