diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2011-06-08 23:30:00 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@free.fr> | 2011-06-08 23:30:00 +0200 |
commit | 95b0dac4497fe76853045b16a800e28a67585b3d (patch) | |
tree | 224051a51284135344b8de8ad523f52027d9ec98 /clocks.c | |
parent | 68500e84c1d76c3db5919cf9b7f179eecbeee718 (diff) | |
download | powerdebug-95b0dac4497fe76853045b16a800e28a67585b3d.tar.gz |
fix segfault when the default window is not the clock
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'clocks.c')
-rw-r--r-- | clocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -255,7 +255,7 @@ int read_and_print_clock_info(int verbose, int hrow, int selected) read_clock_info(clk_dir_path); } - if (!clocks_info->num_children) { + if (!clocks_info || !clocks_info->num_children) { fprintf(stderr, "powerdebug: No clocks found. Exiting..\n"); exit(1); } |