aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-brilliance.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-01 14:24:39 +0100
committerMattias Andrée <maandree@kth.se>2016-12-01 14:24:39 +0100
commit0a8b8c29d48b9c1e92e96a77234f5500d20c1bef (patch)
treef5872a6c9b914e1f8b3e2ebc47198a4ca8f53bd6 /src/cg-brilliance.c
parentFix arg parsing (diff)
downloadcg-tools-0a8b8c29d48b9c1e92e96a77234f5500d20c1bef.tar.gz
cg-tools-0a8b8c29d48b9c1e92e96a77234f5500d20c1bef.tar.bz2
cg-tools-0a8b8c29d48b9c1e92e96a77234f5500d20c1bef.tar.xz
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/cg-brilliance.c')
-rw-r--r--src/cg-brilliance.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cg-brilliance.c b/src/cg-brilliance.c
index 0d5c930..1ad590d 100644
--- a/src/cg-brilliance.c
+++ b/src/cg-brilliance.c
@@ -149,9 +149,9 @@ static int parse_double(double* restrict out, const char* restrict str)
*/
int handle_args(int argc, char* argv[], char* prio)
{
- char* red;
- char* green;
- char* blue;
+ char* red = NULL;
+ char* green = NULL;
+ char* blue = NULL;
int q = xflag + dflag;
if ((q > 1) || (xflag && (prio != NULL || argc)))
usage();