diff options
Diffstat (limited to 'src/corelib/plugin')
-rw-r--r-- | src/corelib/plugin/qlibrary.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp index 185ba74567..7e691bdeae 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -198,6 +198,9 @@ struct qt_token_info static int qt_tokenize(const char *s, ulong s_len, ulong *advance, qt_token_info &token_info) { + if (!s) + return -1; + ulong pos = 0, field = 0, fieldlen = 0; char current; int ret = -1; |