I admit it's not a very important case, but you should probably do something
a little more graceful than a core dump. The bug can be reproduced by
running alltray with a command line option but without a program name, for
example `alltray -s' or `alltray -st'. I'm using version 0.69 . Here's a
patch:
--- old_parent.c 2006-12-31 20:50:41.000000000 -0800
+++ parent.c 2006-12-31 20:54:14.000000000 -0800
@@ -401,7 +401,7 @@
}
- if (rest_buf && strlen (rest_buf) == 0 && !*configure) {
+ if ((!rest_buf || strlen (rest_buf) == 0) && !*configure) {
show_help();
return FALSE;
}
|