X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Floop.c;h=06936778ef0f990751174373f5b7499a339c4eee;hb=7b80235141f331530de337cceeab87de873c5cc2;hp=7a2cc775a650f059aec8c104198e04fbb518d6e9;hpb=fad826ff86720f76220b05e00dc7dfa46e418859;p=pspp diff --git a/src/loop.c b/src/loop.c index 7a2cc775a6..06936778ef 100644 --- a/src/loop.c +++ b/src/loop.c @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include #include "error.h" @@ -32,6 +32,9 @@ #include "str.h" #include "var.h" +#include "gettext.h" +#define _(msgid) gettext (msgid) + #include "debug-print.h" /* LOOP strategy: @@ -224,7 +227,7 @@ internal_cmd_loop (void) } } else - name[0] = 0; + name[0] = '\0'; /* Parse IF clause. */ if (lex_match_id ("IF")) @@ -243,7 +246,7 @@ internal_cmd_loop (void) } /* Find variable; create if necessary. */ - if (name[0]) + if (name[0] != '\0') { two->index = dict_lookup_var (default_dict, name); if (!two->index)