summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-01-02 18:13:47 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-01-07 13:55:51 +0100
commitead4b8810ad1e5d8c3dedbec940e7c7348d4fcdf (patch)
tree7b95560f6efb64bdbea70f5072cae6cdca58164e /common
parent793e5d0350c953c3f2a1177cac158e0a80c220a6 (diff)
quic: Add missing break; in switch/case
Unhandled values call an error callback, and then fall through the default: case, which will call again the error callback. This commit adds some break; after these cases to avoid this.
Diffstat (limited to 'common')
-rw-r--r--common/quic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/quic.c b/common/quic.c
index bcbf093..2cffde5 100644
--- a/common/quic.c
+++ b/common/quic.c
@@ -943,8 +943,10 @@ static void find_model_params(Encoder *encoder,
case 2: /* obsolete */
case 4: /* obsolete */
encoder->usr->error(encoder->usr, "findmodelparams(): evol value obsolete!!!\n");
+ break;
default:
encoder->usr->error(encoder->usr, "findmodelparams(): evol out of range!!!\n");
+ break;
}
*nbuckets = 0;