From: Casey Dahlin Date: Tue, 5 Aug 2008 19:40:41 +0000 (-0400) Subject: Don't default to last known option when setting flags X-Git-Tag: 0.6.0~224 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4191b5d3860bc09488b3f3a56ee59f92ced9824;p=thirdparty%2Fplymouth.git Don't default to last known option when setting flags --- diff --git a/src/libply/ply-command-parser.c b/src/libply/ply-command-parser.c index e8122983..74c566ab 100644 --- a/src/libply/ply-command-parser.c +++ b/src/libply/ply-command-parser.c @@ -292,6 +292,9 @@ ply_command_get_option (ply_command_t *command, node = next_node; } + if (node == NULL) + return NULL; + return option; }