Signed-off-by: Karel Zak <kzak@redhat.com>
const char *argptr=arg;
char *bufptr;
- if (BUFFER != NULL)
- free(BUFFER);
+ free(BUFFER);
if (!quote) { /* Just copy arg */
BUFFER=our_malloc(strlen(arg)+1);
print_help();
exit(0);
case 'o':
- if (optstr)
- free(optstr);
+ free(optstr);
optstr=our_malloc(strlen(optarg)+1);
strcpy(optstr,optarg);
break;
add_long_options(optarg);
break;
case 'n':
- if (name)
- free(name);
+ free(name);
name=our_malloc(strlen(optarg)+1);
strcpy(name,optarg);
break;