Changeset 11769 in project for chicken


Ignore:
Timestamp:
08/26/08 09:24:23 (12 years ago)
Author:
elf
Message:

null deref check, thanks raikov

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chicken/branches/hygienic/runtime.c

    r11766 r11769  
    13041304C_word arg_val(C_char *arg)
    13051305{
    1306   int len = C_strlen(arg);
     1306  int len;
     1307  if (!arg)
     1308      panic(C_text("required argument missing to runtime option"));
     1309  len = C_strlen(arg);
    13071310
    13081311  if(len < 1) panic(C_text("illegal runtime-option argument"));
Note: See TracChangeset for help on using the changeset viewer.