From e7c71570c778ab1d0f6ed940fb34c93e4f8ef9d7 Mon Sep 17 00:00:00 2001 From: <> Date: Tue, 21 Mar 2017 15:23:54 -0700 Subject: [PATCH] minor reordering of switch- most common case first --- includes/dbquery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/dbquery.c b/includes/dbquery.c index e541e0e..f595e68 100644 --- a/includes/dbquery.c +++ b/includes/dbquery.c @@ -13,15 +13,15 @@ static inline char *get_filename(char * const c) { char *qout = "queries/mranks.sql"; if (c != NULL) { switch(*c) { + default: + *c = QOVERVIEW; + break; case QMLEADERBOARD: qout = "queries/mleaderboard-ojoin.sql"; break; case QRPLAYER: qout = "queries/rplayers.sql"; break; - default: - *c = QOVERVIEW; - break; } } return qout;