diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkeynote/keynote-ver.l | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libkeynote/keynote-ver.l b/lib/libkeynote/keynote-ver.l index 51d15a4db8d..19ec8926ab4 100644 --- a/lib/libkeynote/keynote-ver.l +++ b/lib/libkeynote/keynote-ver.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: keynote-ver.l,v 1.18 2015/12/20 00:28:18 mmcc Exp $ */ +/* $OpenBSD: keynote-ver.l,v 1.19 2015/12/23 23:55:30 mmcc Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -50,8 +50,7 @@ comment "#"[^\n]* <FIRSTPART>{vstring} { int len = strlen(kvtext) + 1; kvlval.s.string = calloc(len, sizeof(char)); - if (kvlval.s.string == (char *) NULL) - { + if (kvlval.s.string == NULL) { keynote_errno = ERROR_MEMORY; return -1; } @@ -61,8 +60,7 @@ comment "#"[^\n]* } <KEYSTATE,SECONDPART>{litstring} { kvlval.s.string = calloc(strlen(kvtext) - 1, sizeof(char)); - if (kvlval.s.string == (char *) NULL) - { + if (kvlval.s.string == NULL) { keynote_errno = ERROR_MEMORY; return -1; } |