SOFTHSM-91: Fix a warning from static code analysis.

Fix malloc(0) warning in clang.