summaryrefslogtreecommitdiffstats
path: root/src/dmioem.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2011-01-06 15:56:24 +0100
committerDavid Sommerseth <davids@redhat.com>2011-01-06 15:56:24 +0100
commitd6987c53d3648d85e410ef81a343867e239eb960 (patch)
tree7b4a39570fb13a88bf76a213d48b9c8f71321ffd /src/dmioem.h
parent734d025ce6503851447f5a3dd08b107425f8b515 (diff)
downloadpython-dmidecode-d6987c53d3648d85e410ef81a343867e239eb960.tar.gz
python-dmidecode-d6987c53d3648d85e410ef81a343867e239eb960.tar.xz
python-dmidecode-d6987c53d3648d85e410ef81a343867e239eb960.zip
Harden dmi_string() calls with better NULL checks
This patch fixes more potential issues where dmi_string() results was not necessarily checked for NULL, which potentially could lead to SEGV issues. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/dmioem.h')
-rw-r--r--src/dmioem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dmioem.h b/src/dmioem.h
index b1b4af8..9ad25bf 100644
--- a/src/dmioem.h
+++ b/src/dmioem.h
@@ -22,5 +22,5 @@
struct dmi_header;
-void dmi_set_vendor(const char *s);
+void dmi_set_vendor(const struct dmi_header *h);
int dmi_decode_oem(struct dmi_header *h);