Shlomi Fish avatar 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

Comments (0)

Files changed (4)

fc-solve/source/Makefile.gnu

 
 # 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)

fc-solve/source/cmd_line.c

                     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;

fc-solve/source/gen_makefile.pl

         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)
     );

fc-solve/source/ver.txt

-2.9.7
+2.9.8
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.