Skip to content
This repository has been archived by the owner on Oct 16, 2018. It is now read-only.

Commit

Permalink
fix crash when clicking out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Aug 12, 2018
1 parent 459fdd1 commit a8ead1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/file-browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ int main(int argc, char * argv[]) {

if (me->command == YUTANI_MOUSE_EVENT_CLICK || _close_enough(me)) {
struct File * f = get_file_at_offset(hilighted_offset);
if (f->type == 1) {
if (f && f->type == 1) {
char tmp[1024];
sprintf(tmp,"%s/%s", last_directory, f->name);
load_directory(tmp);
Expand Down

0 comments on commit a8ead1f

Please sign in to comment.