aboutsummaryrefslogtreecommitdiff
path: root/src/hdfsee.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdfsee.c')
-rw-r--r--src/hdfsee.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/hdfsee.c b/src/hdfsee.c
index e5d90456..894b8af9 100644
--- a/src/hdfsee.c
+++ b/src/hdfsee.c
@@ -223,6 +223,9 @@ int main(int argc, char *argv[])
case 0 :
break;
+ case '?' :
+ break;
+
default :
ERROR("Unhandled option '%c'\n", c);
break;
@@ -263,11 +266,7 @@ int main(int argc, char *argv[])
ring_radii,
n_rings,
ring_size);
- if ( main_window_list[i] == NULL ) {
- ERROR("Couldn't open display window\n");
- } else {
- main_n_windows++;
- }
+ if ( main_window_list[i] != NULL ) main_n_windows++;
}
if ( main_n_windows == 0 ) return 0;