1. Shlomi Fish
  2. fc-solve

Commits

Shlomi Fish  committed 5def231

Incorporated the bug fix that the file was read uninitiliazed.

git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@561 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a

  • Participants
  • Parent commits 4659d9c
  • Branches master

Comments (0)

Files changed (4)

File fc-solve/source/Makefile.gnu

View file
 
 # END_OLFLAGS += -pg -lc_p
 
-OFLAGS += -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
+# OFLAGS += -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
 
 DFLAGS = $(OFLAGS) -DDEBUG
 END_DLFLAGS = $(END_OLFLAGS)

File fc-solve/source/cmd_line.c

View file
                     num_args_to_skip = atoi(argv[arg]);
                     s++;
                 }
+
                 if (opened_files_dir)
                 {
                     char * complete_path;
                     f = fopen(complete_path, "rt");
                     free(complete_path);
                 }
+                else
+                {
+                    /* 
+                     * Initialize f to NULL so it will be initialized
+                     * */
+                    f = NULL;
+                }
+
+                /* Try to open from the local path */                
                 if (f == NULL)
                 {
                     f = fopen(s, "rt");
                 }
+                
+                /* If we still could not open it return an error */
                 if (f == NULL)
                 {
                     char * err_str;

File fc-solve/source/gen_makefile.pl

View file
         qw(alloc app_str caas card cl_chop), { 'name' => "config", 'gen' => 1}, 
             qw(ds_order fcs_cl fcs fcs_dm fcs_enums),
         qw(fcs_hash fcs_isa fcs_move fcs_user inline jhjtypes lookup2), 
+
         qw(move ms_ca), {'name' => "prefix", 'gen' => 1}, 
             qw(pqueue preset rand state test_arr test_num tests)
     );

File fc-solve/source/ver.txt

View file
-2.9.7
+2.9.8