mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
scst_lib: Fix a dereference-before-test. Detected by smatch
Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4489 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -8504,8 +8504,7 @@ EXPORT_SYMBOL(scst_reassign_persistent_sess_states);
|
||||
*/
|
||||
char *scst_get_next_lexem(char **token_str)
|
||||
{
|
||||
char *p = *token_str;
|
||||
char *q;
|
||||
char *p, *q;
|
||||
static const char blank = '\0';
|
||||
|
||||
if ((token_str == NULL) || (*token_str == NULL))
|
||||
|
||||
Reference in New Issue
Block a user