summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 7afd17e8f..d12351ba0 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1144,7 +1144,7 @@ char *str_signed(unsigned char *str)
**/
char *stripModePrefix(const char *str) {
- if(str) {
+ if (str && ((*str == '+') || (*str == '-'))) {
return sstrdup(str+1);
}
return NULL;