aboutsummaryrefslogtreecommitdiff
path: root/src/libventi/parsescore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libventi/parsescore.c')
-rw-r--r--src/libventi/parsescore.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libventi/parsescore.c b/src/libventi/parsescore.c
index 2c38808b..bf4a6125 100644
--- a/src/libventi/parsescore.c
+++ b/src/libventi/parsescore.c
@@ -33,8 +33,11 @@ vtparsescore(char *s, char **prefix, uchar score[VtScoreSize])
}
if(colon){
*colon = 0;
- *prefix = s;
- }else
- *prefix = nil;
+ if(prefix)
+ *prefix = s;
+ }else{
+ if(prefix)
+ *prefix = nil;
+ }
return 0;
}