aboutsummaryrefslogtreecommitdiffstats
path: root/src/symap.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-18 06:54:24 +0000
committerDavid Robillard <d@drobilla.net>2012-02-18 06:54:24 +0000
commitbfee18f05fae23fa8107de86761c79d07955e0ca (patch)
tree83ce5ca59a588d2eb63fa3fbf82ca3b11e6af61f /src/symap.c
parent719c973b349724657c71b545f4f3d4498d633b23 (diff)
downloadjalv-bfee18f05fae23fa8107de86761c79d07955e0ca.tar.gz
jalv-bfee18f05fae23fa8107de86761c79d07955e0ca.tar.bz2
jalv-bfee18f05fae23fa8107de86761c79d07955e0ca.zip
Add -d option and implement proper communication dumping.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3986 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/symap.c')
-rw-r--r--src/symap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/symap.c b/src/symap.c
index ee9320d..f7cc653 100644
--- a/src/symap.c
+++ b/src/symap.c
@@ -1,5 +1,5 @@
/*
- Copyright 2011 David Robillard <http://drobilla.net>
+ Copyright 2011-2012 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -172,7 +172,9 @@ symap_map(Symap* map, const char* sym)
const char*
symap_unmap(Symap* map, uint32_t id)
{
- if (id <= map->size) {
+ if (id == 0) {
+ return NULL;
+ } else if (id <= map->size) {
return map->symbols[id - 1];
}
return NULL;