projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
064e634
)
Avoid possible null pointer dereference
author
John Darrington
<john@cellform.com>
Sun, 26 Feb 2023 09:59:50 +0000
(10:59 +0100)
committer
John Darrington
<john@cellform.com>
Sun, 26 Feb 2023 09:59:50 +0000
(10:59 +0100)
* modified: src/ui/gui/psppire-encoding-selector.c
src/ui/gui/psppire-encoding-selector.c
patch
|
blob
|
history
diff --git
a/src/ui/gui/psppire-encoding-selector.c
b/src/ui/gui/psppire-encoding-selector.c
index a551ef054937a467941b1c998b2e7ae4d13099fd..33d1af524f0b1fd7655a09261d8b610030f3480f 100644
(file)
--- a/
src/ui/gui/psppire-encoding-selector.c
+++ b/
src/ui/gui/psppire-encoding-selector.c
@@
-212,7
+212,7
@@
psppire_encoding_selector_get_encoding (GtkWidget *selector)
g_list_free (list);
- if (
0 == strcmp (encoding, "Auto"
))
+ if (
encoding && (0 == strcmp (encoding, "Auto")
))
{
g_free (encoding);
return NULL;