repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 75fb9b4c660ad62be8c230f32f4d457c963a15b6: path_to: revision_to:
commit 75fb9b4c660ad62be8c230f32f4d457c963a15b6 Author: Emanuele GiaquintaDate: Tue Oct 9 15:23:59 2007 +0000 *** empty log message *** diff --git a/src/xdefaults.C b/src/xdefaults.C
--- a/src/xdefaults.C
+++ b/src/xdefaults.C
@@ -549,7 +549,7 @@ rxvt_term::get_options (int argc, const char *const *argv)
if (optList[entry].doff != -1)
{
- if (flag == resval_on && !argv [i+1])
+ if (flag == resval_on && i+1 == argc)
rxvt_fatal ("option '%s' needs an argument, aborting.\n", argv [i]);
rs[optList[entry].doff] = flag == resval_on ? argv[++i] : resval_undef;
@@ -567,10 +567,8 @@ rxvt_term::get_options (int argc, const char *const *argv)
#ifdef KEYSYM_RESOURCE
if (!strncmp (opt, "keysym.", sizeof ("keysym.") - 1))
{
- const char *str = argv[++i];
-
- if (str != NULL)
- parse_keysym (opt + sizeof ("keysym.") - 1, str);
+ if (i+1 < argc)
+ parse_keysym (opt + sizeof ("keysym.") - 1, argv[++i]);
}
else
#endif
-----END OF PAGE-----