gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master a59d5b3: Switch structure was missing breaks,


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master a59d5b3: Switch structure was missing breaks, corrected
Date: Tue, 18 Oct 2016 13:38:36 +0000 (UTC)

branch: master
commit a59d5b32b6bf506703784fa8fb083f44e06be139
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Switch structure was missing breaks, corrected
    
    The `switch' structure in `gal_configfiles_print_type' was missing breaks!
    This would cause the outputs of `-P' in programs that use it stop with a
    bug report. Breaks have now been added.
---
 lib/configfiles.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/configfiles.c b/lib/configfiles.c
index b6365cc..db5f952 100644
--- a/lib/configfiles.c
+++ b/lib/configfiles.c
@@ -213,16 +213,22 @@ gal_configfiles_print_type(FILE *fp, int bitpix)
     {
     case BYTE_IMG:
       fprintf(fp, CONF_SHOWFMT"%s\n", "type", "byte");
+      break;
     case SHORT_IMG:
       fprintf(fp, CONF_SHOWFMT"%s\n", "type", "short");
+      break;
     case LONG_IMG:
       fprintf(fp, CONF_SHOWFMT"%s\n", "type", "long");
+      break;
     case LONGLONG_IMG:
       fprintf(fp, CONF_SHOWFMT"%s\n", "type", "longlong");
+      break;
     case FLOAT_IMG:
       fprintf(fp, CONF_SHOWFMT"%s\n", "type", "float");
+      break;
     case DOUBLE_IMG:
       fprintf(fp, CONF_SHOWFMT"%s\n", "type", "double");
+      break;
     default:
       error(EXIT_FAILURE, 0, "a bug! the value of bitpix is not recognized "
             "in `gal_configfiles_print_type'. Please contact us at %s so "



reply via email to

[Prev in Thread] Current Thread [Next in Thread]