diff options
Diffstat (limited to 'src/info.c')
| -rw-r--r-- | src/info.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,14 +8,15 @@ void info_handler(struct player_t *player) struct stock_t *stock = find_stock(player, sym); - free(sym); - if(!stock) { printf("Couldn't find '%s' in portfolio.\n", sym); + free(sym); return; } + free(sym); + printf("Transaction history:\n"); print_history(stock); } |