aboutsummaryrefslogtreecommitdiff
path: root/src/libventi/parsescore.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-18 20:15:18 +0000
committerrsc <devnull@localhost>2005-01-18 20:15:18 +0000
commit361e279c59273dc82b1a5ced832d790a3b8b7a28 (patch)
tree88800a8bd0bb2c8ca81bd163de87b398f685cd5b /src/libventi/parsescore.c
parentaa1d0b1bb0129243f0c4d7c6b3892d8f0556f80a (diff)
downloadplan9port-361e279c59273dc82b1a5ced832d790a3b8b7a28.tar.gz
plan9port-361e279c59273dc82b1a5ced832d790a3b8b7a28.tar.bz2
plan9port-361e279c59273dc82b1a5ced832d790a3b8b7a28.zip
bug fixes
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;
}