diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-10-30 23:50:22 +0100 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-10-30 23:50:22 +0100 |
commit | ce33c7824cdde8308d07dee35023ea4742faa109 (patch) | |
tree | ffc8e00e902f707f270ecbce8df20a6bd01a1948 | |
parent | a5a07d79a552f34b13880c9a1f9eebbdabe7dd2e (diff) |
Break current macro instead of returning for file read errors in %M
-rw-r--r-- | blasms.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -307,12 +307,12 @@ int main(int argc, char *argv[]) { if (fp == NULL) { printf("Error opening message file.\n"); - return 1; + break; } if (fgets(line, 1024, fp) == NULL) { printf("Error reading message file.\n"); - return 1; + break; } fclose(fp); @@ -325,7 +325,7 @@ int main(int argc, char *argv[]) { setname(telnum); } else { printf("Error, malformed message file.\n"); - return 1; + break; } replacestr(systemcmd, i, 2, telnum); |