diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-08-01 07:59:51 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-08-01 07:59:51 +0000 |
commit | f983c44c7ad77605dbccdb3029d0a9874ce19caa (patch) | |
tree | 0fe3279aecedda56b8d25e7bcb55bfd9b1626d24 | |
parent | 97aff8721825836c9d4b635fe2b1e16a888a2d03 (diff) | |
download | python-dmidecode-f983c44c7ad77605dbccdb3029d0a9874ce19caa.tar.gz python-dmidecode-f983c44c7ad77605dbccdb3029d0a9874ce19caa.tar.xz python-dmidecode-f983c44c7ad77605dbccdb3029d0a9874ce19caa.zip |
Default case set to return python's `None'.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@33 abc39116-655e-4be6-ad55-d661dc543056
-rw-r--r-- | dmidecode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dmidecode.c b/dmidecode.c index a43c708..38936bf 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -1587,6 +1587,8 @@ static PyObject *dmi_slot_id(u8 code1, u8 code2, u8 type) { case 0x07: /* PCMCIA */ data = PyString_FromFormat("Adapter %u, Socket %u", code1, code2); break; + default: + data = Py_None; } return data; } |